mirror of https://github.com/libsdl-org/SDL
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.
This commit is contained in:
parent
893c87b27b
commit
b4aba10154
|
@ -1556,11 +1556,9 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
|
||||||
// see SDL_messagebox.h
|
// see SDL_messagebox.h
|
||||||
if ((buttonFlags[i] & 0x00000001) != 0) {
|
if ((buttonFlags[i] & 0x00000001) != 0) {
|
||||||
mapping.put(KeyEvent.KEYCODE_ENTER, button);
|
mapping.put(KeyEvent.KEYCODE_ENTER, button);
|
||||||
mapping.put(KeyEvent.KEYCODE_BUTTON_A, button);
|
|
||||||
}
|
}
|
||||||
if ((buttonFlags[i] & 0x00000002) != 0) {
|
if ((buttonFlags[i] & 0x00000002) != 0) {
|
||||||
mapping.put(KeyEvent.KEYCODE_ESCAPE, button); /* API 11 */
|
mapping.put(KeyEvent.KEYCODE_ESCAPE, button); /* API 11 */
|
||||||
mapping.put(KeyEvent.KEYCODE_BUTTON_B, button);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
button.setText(buttonTexts[i]);
|
button.setText(buttonTexts[i]);
|
||||||
|
|
Loading…
Reference in New Issue