mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-17 22:31:35 +00:00
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:
@@ -325,6 +325,7 @@ public class ControllerHandler {
|
|||||||
case KeyEvent.KEYCODE_BUTTON_B:
|
case KeyEvent.KEYCODE_BUTTON_B:
|
||||||
inputMap &= ~ControllerPacket.B_FLAG;
|
inputMap &= ~ControllerPacket.B_FLAG;
|
||||||
break;
|
break;
|
||||||
|
case KeyEvent.KEYCODE_DPAD_CENTER:
|
||||||
case KeyEvent.KEYCODE_BUTTON_A:
|
case KeyEvent.KEYCODE_BUTTON_A:
|
||||||
inputMap &= ~ControllerPacket.A_FLAG;
|
inputMap &= ~ControllerPacket.A_FLAG;
|
||||||
break;
|
break;
|
||||||
@@ -405,6 +406,7 @@ public class ControllerHandler {
|
|||||||
case KeyEvent.KEYCODE_BUTTON_B:
|
case KeyEvent.KEYCODE_BUTTON_B:
|
||||||
inputMap |= ControllerPacket.B_FLAG;
|
inputMap |= ControllerPacket.B_FLAG;
|
||||||
break;
|
break;
|
||||||
|
case KeyEvent.KEYCODE_DPAD_CENTER:
|
||||||
case KeyEvent.KEYCODE_BUTTON_A:
|
case KeyEvent.KEYCODE_BUTTON_A:
|
||||||
inputMap |= ControllerPacket.A_FLAG;
|
inputMap |= ControllerPacket.A_FLAG;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user