mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
EmuScreen: Only react to keydowns when looking for the back key.
This commit is contained in:
parent
7848faa7c4
commit
525767dc27
@ -304,8 +304,9 @@ inline void EmuScreen::setVKeyAnalogY(int stick, int virtualKeyMin, int virtualK
|
||||
}
|
||||
|
||||
void EmuScreen::key(const KeyInput &key) {
|
||||
if (key.keyCode == NKCODE_BACK)
|
||||
if ((key.flags & KEY_DOWN) && key.keyCode == NKCODE_BACK) {
|
||||
pauseTrigger_ = true;
|
||||
}
|
||||
|
||||
int result = KeyMap::KeyToPspButton(key.deviceId, key.keyCode);
|
||||
if (result == KEYMAP_ERROR_UNKNOWN_KEY)
|
||||
@ -566,7 +567,7 @@ void EmuScreen::render() {
|
||||
ui_draw2d.DrawText(UBUNTU24, fpsbuf, dp_xres - 10, 10, 0xFF3fFF3f, ALIGN_TOPRIGHT | FLAG_DYNAMIC_ASCII);
|
||||
ui_draw2d.SetFontScale(1.0f, 1.0f);
|
||||
}
|
||||
|
||||
|
||||
glsl_bind(UIShader_Get());
|
||||
ui_draw2d.End();
|
||||
ui_draw2d.Flush();
|
||||
|
Loading…
Reference in New Issue
Block a user