LilyPad: Fix for occasional loss of input when suspending/resuming emulation.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2132 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2009-11-05 00:30:48 +00:00
parent 36946c97b4
commit 8102692d36
1 changed files with 2 additions and 0 deletions

View File

@ -944,6 +944,7 @@ s32 CALLBACK PADopen(void *pDsp) {
hWnd = GetParent (hWnd);
// Implements most hacks, as well as enabling/disabling mouse
// capture when focus changes.
updateQueued = 0;
if (!EatWndProc(hWnd, HackWndProc, 0)) {
openCount = 0;
return -1;
@ -987,6 +988,7 @@ s32 CALLBACK PADopen(void *pDsp) {
void CALLBACK PADclose() {
if (openCount && !--openCount) {
DEBUG_TEXT_OUT("LilyPad closed\n\n");
updateQueued = 0;
ReleaseEatenProc();
dm->ReleaseInput();
hWnd = 0;