From b4aba10154f901fc36af0fb94742201c21ce7f74 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 6 Oct 2022 12:10:46 -0700 Subject: [PATCH] Reverted game controller buttons from interacting with message box dialogs These would only work for non-HIDAPI controllers, and other controller input would leak past the dialog, both of which would be confusing. --- .../app/src/main/java/org/libsdl/app/SDLActivity.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java index e44cc2d4e..666ea3164 100644 --- a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java +++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java @@ -1556,11 +1556,9 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh // see SDL_messagebox.h if ((buttonFlags[i] & 0x00000001) != 0) { mapping.put(KeyEvent.KEYCODE_ENTER, button); - mapping.put(KeyEvent.KEYCODE_BUTTON_A, button); } if ((buttonFlags[i] & 0x00000002) != 0) { mapping.put(KeyEvent.KEYCODE_ESCAPE, button); /* API 11 */ - mapping.put(KeyEvent.KEYCODE_BUTTON_B, button); } } button.setText(buttonTexts[i]);