mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
Always tell Android we handled the BUTTON_MODE key
Otherwise, as seen in #17245, some devies can decide to do something weird with it, like exiting the app.
This commit is contained in:
parent
f390c3a6ee
commit
d5f131f6a7
@ -1275,6 +1275,13 @@ bool NativeKey(const KeyInput &key) {
|
||||
HLEPlugins::PluginDataKeys[key.keyCode] = (key.flags & KEY_DOWN) ? 1 : 0;
|
||||
retval = g_screenManager->key(key);
|
||||
}
|
||||
|
||||
// The Mode key can have weird consequences on some devices, see #17245.
|
||||
if (key.keyCode == NKCODE_BUTTON_MODE) {
|
||||
// Tell the caller that we handled the key.
|
||||
retval = true;
|
||||
}
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user