LilyPad: Fix F4 button (PCSX2 FrameLimiter toggle) getting blocked

Fixes issue where losing focus after pressing alt-tab would end up
blocking the F4 button (which is used for turning the PCSX2 FrameLimiter
on and off).

Fixes: https://github.com/PCSX2/pcsx2/issues/1797
This commit is contained in:
FlatOutPS2 2017-03-10 14:45:39 +01:00 committed by Jonathan Li
parent bd45bab34a
commit 84a8fdadc5
1 changed files with 3 additions and 0 deletions

View File

@ -1579,6 +1579,9 @@ keyEvent *CALLBACK PADkeyEvent()
#ifdef _MSC_VER
static char shiftDown = 0;
static char altDown = 0;
if (!activeWindow)
altDown = shiftDown = 0;
if (miceEnabled && (ev.key == VK_ESCAPE || (int)ev.key == -2) && ev.evt == KEYPRESS) {
// Disable mouse/KB hooks on escape (before going into paused mode).
// This is a hack, since PADclose (which is called on pause) should enevtually also deactivate the