You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user