From 4c00ecd14611eb02cc14f7feca11b4e400a31be3 Mon Sep 17 00:00:00 2001 From: Hiroki Taira <58840595+hrk4649@users.noreply.github.com> Date: Sun, 14 May 2023 08:05:14 +0900 Subject: [PATCH] Add support for DPAD Center key of Android TV remote controller (cherry picked from commit 9dc84e35816fbb41cfabb1b6e11536edd7263c67) --- platform/android/android_keys_utils.h | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/android/android_keys_utils.h b/platform/android/android_keys_utils.h index 3cf8b65abdd..5321751b477 100644 --- a/platform/android/android_keys_utils.h +++ b/platform/android/android_keys_utils.h @@ -60,6 +60,7 @@ static AndroidGodotCodePair android_godot_code_pairs[] = { { AKEYCODE_DPAD_DOWN, KEY_DOWN }, // (20) Directional Pad Down key. { AKEYCODE_DPAD_LEFT, KEY_LEFT }, // (21) Directional Pad Left key. { AKEYCODE_DPAD_RIGHT, KEY_RIGHT }, // (22) Directional Pad Right key. + { AKEYCODE_DPAD_CENTER, KEY_ENTER }, // (23) Directional Pad Center key. { AKEYCODE_VOLUME_UP, KEY_VOLUMEUP }, // (24) Volume Up key. { AKEYCODE_VOLUME_DOWN, KEY_VOLUMEDOWN }, // (25) Volume Down key. { AKEYCODE_POWER, KEY_STANDBY }, // (26) Power key.