mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-02-16 02:20:55 +00:00
Fix the back button on the Xbox controller
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user