Make the d-pad center button emulate the A button so remotes with only d-pad buttons are usable in the Steam UI

This commit is contained in:
Cameron Gutman
2014-04-21 17:40:50 -04:00
parent d2773be32e
commit 7a017d7b97

View File

@@ -325,6 +325,7 @@ public class ControllerHandler {
case KeyEvent.KEYCODE_BUTTON_B:
inputMap &= ~ControllerPacket.B_FLAG;
break;
case KeyEvent.KEYCODE_DPAD_CENTER:
case KeyEvent.KEYCODE_BUTTON_A:
inputMap &= ~ControllerPacket.A_FLAG;
break;
@@ -405,6 +406,7 @@ public class ControllerHandler {
case KeyEvent.KEYCODE_BUTTON_B:
inputMap |= ControllerPacket.B_FLAG;
break;
case KeyEvent.KEYCODE_DPAD_CENTER:
case KeyEvent.KEYCODE_BUTTON_A:
inputMap |= ControllerPacket.A_FLAG;
break;