Skip to content Skip to sidebar Skip to footer

Onclick Multiple Buttons At Once Multitouch

Im programming a little game where two Players have to click some Buttons it works pretty good if there is only one player, but when the other player is also playing his part of th

Solution 1:

Multiple button presses for Android 2.x

Click two buttons at the same time in Android

so from the first posted link it seems like you need to override the touch events not just the onclick

the second post talks about versions

if neither of these help, please post some code

few more links due to comments below

Android multitouch: ACTION_UP not always called?

Android - OnTouch Do Work

getAction() gives only ACTION_DOWN

Solution 2:

You can do it easily by running a separate thread that would listen to TouchEvents and Updates the UI with the help of Handler. Since your UI is never stuck and background thread will always listen for simultaneous touch events.

Post a Comment for "Onclick Multiple Buttons At Once Multitouch"