Fix SHIELD remote back button not working

This commit is contained in:
Cameron Gutman 2017-11-07 21:45:07 -08:00
parent c4b1200b43
commit e3c1d23744

View File

@ -375,7 +375,7 @@ public class ControllerHandler implements InputManager.InputDeviceListener, UsbD
context.triggerDeadzone = 0.30f;
}
// Classify this device as a remote by name
else if (devName.contains("Fire TV Remote") || devName.contains("Nexus Remote")) {
else if (devName.toLowerCase().contains("remote")) {
// It's only a remote if it doesn't any sticks
if (!context.hasJoystickAxes) {
context.ignoreBack = true;