Multi touch

Monkey Targets Forums/iOS/Multi touch

Gary Leeds(Posted 2011) [#1]
Just looking at my first Monkey project and wondered if it was possible to read multitouch on the iXxxx devices? If so how do you do it?

Thanks
Gary


xzess(Posted 2011) [#2]
Monkey provides TouchDown( index=0 )



Returns true if the finger specified by index is currently touching the touchscreen, otherwise false.



Note that index refers to the order touches have been made. The first finger to touch the touchscreen will be assigned index 0. If another finger then also touches the touchscreen, it will be assigned index 1 and so on.



If a finger is touching, you can get its x and y coordinates using the TouchX and TouchY commands.



On devices with a mouse but no touch screen, TouchDown( 0 ) will instead return MouseDown( MOUSE_LEFT ).



Greetz,
xzess