i am new to android programming, and trying to make a little game.
i have three "buttons" two for moving right and left and one to shoot. i want to be able to hold the moveright button down while i hold the shootbutton down.
(if you tried bubble trouble in android version it is basicly the button confirguration i want).

whats happening right now i is that im using surfaceView and onTouchEvent.
In onTuchEvent i am using Action_up and Action_down to detect wheter a button is pressed.
But if i press and hold righButton and then press shoot,it only uses the rightButton input, even if i release the rightButton while still holding sootButton.
I do understand why this happen, but i don't know how to do solve it.