浏览代码

Merge pull request #105992 from uno1982/4.5-dev-fix-android-controller

Fix issues with Android controller input handling
Rémi Verschelde 3 月之前
父节点
当前提交
c1d3746a67
共有 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

@@ -446,9 +446,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: