Browse Source

Fix for ps4 and ps5 controller options and share buttons

uno1982 4 months ago
parent
commit
5ce11b1eac

+ 2 - 0
platform/android/java/lib/src/org/godotengine/godot/input/GodotInputHandler.java

@@ -448,9 +448,11 @@ public class GodotInputHandler implements InputManager.InputDeviceListener, Sens
 				button = 16;
 				break;
 			case KeyEvent.KEYCODE_BUTTON_SELECT:
+			case KeyEvent.KEYCODE_BACK:
 				button = 4;
 				break;
 			case KeyEvent.KEYCODE_BUTTON_START:
+			case KeyEvent.KEYCODE_MENU:
 				button = 6;
 				break;
 			case KeyEvent.KEYCODE_BUTTON_THUMBL: