浏览代码

Fix for ps4 and ps5 controller options and share buttons

uno1982 4 月之前
父节点
当前提交
5ce11b1eac
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      platform/android/java/lib/src/org/godotengine/godot/input/GodotInputHandler.java

+ 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: