mrqs
Android Expert
what i have now is a onKeyDown() in a SurfaceView and the d-pad works much like the windows arrow keys in a text field - when you press-and-hold left, the cursor moves 1 step, pauses, then moves n steps per second until you release the button
this is of course useful for textfields and such, but when you want to control the position of an object on screen (such as a character in a game) it's not so good
so how do you overcome this?
how do you generate the n events per second from the moment you down the d-pad button?
this is of course useful for textfields and such, but when you want to control the position of an object on screen (such as a character in a game) it's not so good
so how do you overcome this?
how do you generate the n events per second from the moment you down the d-pad button?