I have two buttons in stage.
But I cannot get touch events of these buttons at the same time.
I think a multitouch event fires when pressing buttons at the sametime.
How can I solve this?
1 2 | btn1:addEventListener( "touch", tapFor1 ) btn2:addEventListener( "touch", tapFor2 ) |
I think you should use:
system.activate( "multitouch" )
You can find an example here:
http://developer.anscamobile.com/content/drag-me-multitouch
adding return true solve my problem
1 2 3 4 | function tapFor1( event ) some code... return true end |
what do you mean you do not get the events at the same time after you have multi-touch enabled?
cheers,
?:)
views:1618 update:2011/10/18 8:54:01