EmuScreen: Only react to keydowns when looking for the back key.

This commit is contained in:
Henrik Rydgård 2013-10-27 10:50:45 +01:00
parent 7848faa7c4
commit 525767dc27

View File

@ -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();