mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
bd45bab34a
commit
84a8fdadc5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue