You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Fix Xbox Controller on Android
This commit is contained in:
@@ -450,6 +450,9 @@ public class GodotInputHandler implements InputManager.InputDeviceListener, Sens
|
||||
case KeyEvent.KEYCODE_BUTTON_SELECT:
|
||||
button = 4;
|
||||
break;
|
||||
case KeyEvent.KEYCODE_BUTTON_MODE: // Home/Xbox Button on Xbox controllers
|
||||
button = 5;
|
||||
break;
|
||||
case KeyEvent.KEYCODE_BUTTON_START:
|
||||
button = 6;
|
||||
break;
|
||||
@@ -471,6 +474,9 @@ public class GodotInputHandler implements InputManager.InputDeviceListener, Sens
|
||||
case KeyEvent.KEYCODE_DPAD_RIGHT:
|
||||
button = 14;
|
||||
break;
|
||||
case KeyEvent.KEYCODE_MEDIA_RECORD: // Share Button on Xbox controllers
|
||||
button = 15;
|
||||
break;
|
||||
case KeyEvent.KEYCODE_BUTTON_C:
|
||||
button = 17;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user