Updating AndroidThunkJava_IsGamepadAttached to not check SOURCE_DPAD because it was false flagging gamepads.

Chris.Babcock


#ROBOMERGE-SOURCE: CL 5345005 via CL 5345014 via CL 5345016 via CL 5346535

[CL 5346620 by mic rooney in Main branch]
This commit is contained in:
mic rooney
2019-03-07 20:46:32 -05:00
parent a9c9d63687
commit 04db4e44c1

View File

@@ -4696,8 +4696,7 @@ public class GameActivity extends $${gameActivitySuperClass}$$ implements Surfac
InputDevice inputDevice = InputDevice.getDevice(deviceIds[deviceIndex]);
// is it a joystick, dpad, or gamepad?
if (((inputDevice.getSources() & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD)
|| ((inputDevice.getSources() & InputDevice.SOURCE_JOYSTICK) == InputDevice.SOURCE_JOYSTICK)
|| ((inputDevice.getSources() & InputDevice.SOURCE_DPAD) == InputDevice.SOURCE_DPAD))
|| ((inputDevice.getSources() & InputDevice.SOURCE_JOYSTICK) == InputDevice.SOURCE_JOYSTICK))
{
return true;
}