Sorry it’s been a while, busy week, but I’ve got my pc running the same code as before and the Droid simulator.
Code:
[lua]function touch( event )
print( event.id, event.name, event.phase, event.time )
end
Runtime:addEventListener( “touch”, touch )[/lua]
Output without move events, just taps…
One tap only:
[lua]Copyright © 2009-2010 A n s c a , I n c .
Version: 2.0.0
Build: 2011.484
userdata: 0051A988 touch began 437
userdata: 0051A988 touch ended 500[/lua]
Double tap:
[lua]Copyright © 2009-2010 A n s c a , I n c .
Version: 2.0.0
Build: 2011.484
userdata: 0051A98C touch began 422
userdata: 0051A98C touch ended 484
userdata: 0051A990 touch ended 656[/lua]
Triple tap:
[lua]Copyright © 2009-2010 A n s c a , I n c .
Version: 2.0.0
Build: 2011.484
userdata: 0051A994 touch began 469
userdata: 0051A994 touch ended 516
userdata: 0051A998 touch ended 688
userdata: 0051A99C touch began 797
userdata: 0051A99C touch ended 875[/lua]
Obviously, what is happening here is that the began event on a double tap is missing. The triple tap experiences the double tap problem, then the third is fine.
I have observed the same behaviour on all the simulated devices and, as you can see, this is running on the current version 484.
The problem, at least for me, is that I’ve written a library which uses the touch event to count taps, so that I can have different tap speeds, count more than the apparent limit of 3 taps and other, multitouch events, like patterns. This doesn’t work if the began and ended events do not match up.
Matt. [import]uid: 8271 topic_id: 9035 reply_id: 33226[/import]