Android onscreen joystick issues

若如初见. 提交于 2019-11-30 22:31:00

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

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;
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!