Skip to content Skip to sidebar Skip to footer

Android Onscreen Joystick Issues

So I'm trying to build a game with an on-screen joystick that moves a bitmap around the screen. But when I hold the joystick down in any direction and keep it there, the bitmap wil

Solution 1:

Try this It is open source api for on screen joystick for Android.

Solution 2:

It was because I only had the code to increment the bitmaps location in the onTouch method. When the screen is being touched but not moving a event is not registered. The code below should be outside the onTouch method.

bitmapPoint.x += a * .05;
bitmapPoint.y += b * .05;

Post a Comment for "Android Onscreen Joystick Issues"