Created
October 10, 2018 20:35
-
-
Save slobodin/7886457059457ff6e12f463feb205348 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Query all input devices. | |
// We do this so that we can see them in the log as they are enumerated. | |
int[] ids = mInputManager.getInputDeviceIds(); | |
for (int id : ids) { | |
InputDeviceState state = getInputDeviceState(id); | |
if (state != null && deviceIsJoystick(state.getDevice())) | |
addJoystick(0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment