Android API Joystick

Android 3.1+ supports a joystick and a gamepad, but there are no examples. I tried using onTrackballEvent and it did not work. How can I use the joystick in my android app?

+4
source share
1 answer

Check out the samples: http://developer.android.com/tools/samples/index.html

There is an example of a GameControllerInput in the ApiDemos project. In particular / samples / android -rev / ApiDemos / src / com / example / android / apis / view / GameControllerInput.java

You can also find this on the Internet in several places that reflect the code, for example: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/4.0.3_r1 /com/example/android/apis/view/GameControllerInput.java

+8
source

All Articles