mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Quick hack to avoid unthrottled getting stuck when alt-tabbing.
Assumes the default keymap of course but shouldn't really have any adverse effects if you have remapped your controls.
This commit is contained in:
parent
b9c908ba3f
commit
65baad70ac
1 changed files with 10 additions and 0 deletions
|
@ -1074,6 +1074,16 @@ namespace MainWindow
|
|||
Core_EnableStepping(pause);
|
||||
}
|
||||
}
|
||||
|
||||
if (wParam == WA_INACTIVE) {
|
||||
// Force-release TAB, which is the most annoying one when alt tabbing
|
||||
// This isn't exactly a correct solution but will fix this annoyance for many.
|
||||
KeyInput key;
|
||||
key.deviceId = DEVICE_ID_KEYBOARD;
|
||||
key.keyCode = NKCODE_TAB;
|
||||
key.flags = KEY_UP;
|
||||
NativeKey(key);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue