mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 03:23:07 +00:00
Fix the back button on the Xbox controller
This commit is contained in:
parent
ab61af0cb7
commit
47ea18b882
@ -77,6 +77,7 @@ public class Game extends Activity implements OnGenericMotionListener, OnTouchLi
|
||||
case KeyEvent.KEYCODE_MENU:
|
||||
inputMap |= NvControllerPacket.PLAY_FLAG;
|
||||
break;
|
||||
case KeyEvent.KEYCODE_BACK:
|
||||
case KeyEvent.KEYCODE_BUTTON_SELECT:
|
||||
inputMap |= NvControllerPacket.BACK_FLAG;
|
||||
break;
|
||||
@ -131,6 +132,7 @@ public class Game extends Activity implements OnGenericMotionListener, OnTouchLi
|
||||
case KeyEvent.KEYCODE_MENU:
|
||||
inputMap &= ~NvControllerPacket.PLAY_FLAG;
|
||||
break;
|
||||
case KeyEvent.KEYCODE_BACK:
|
||||
case KeyEvent.KEYCODE_BUTTON_SELECT:
|
||||
inputMap &= ~NvControllerPacket.BACK_FLAG;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user