mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
36946c97b4
commit
8102692d36
|
@ -944,6 +944,7 @@ s32 CALLBACK PADopen(void *pDsp) {
|
||||||
hWnd = GetParent (hWnd);
|
hWnd = GetParent (hWnd);
|
||||||
// Implements most hacks, as well as enabling/disabling mouse
|
// Implements most hacks, as well as enabling/disabling mouse
|
||||||
// capture when focus changes.
|
// capture when focus changes.
|
||||||
|
updateQueued = 0;
|
||||||
if (!EatWndProc(hWnd, HackWndProc, 0)) {
|
if (!EatWndProc(hWnd, HackWndProc, 0)) {
|
||||||
openCount = 0;
|
openCount = 0;
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -987,6 +988,7 @@ s32 CALLBACK PADopen(void *pDsp) {
|
||||||
void CALLBACK PADclose() {
|
void CALLBACK PADclose() {
|
||||||
if (openCount && !--openCount) {
|
if (openCount && !--openCount) {
|
||||||
DEBUG_TEXT_OUT("LilyPad closed\n\n");
|
DEBUG_TEXT_OUT("LilyPad closed\n\n");
|
||||||
|
updateQueued = 0;
|
||||||
ReleaseEatenProc();
|
ReleaseEatenProc();
|
||||||
dm->ReleaseInput();
|
dm->ReleaseInput();
|
||||||
hWnd = 0;
|
hWnd = 0;
|
||||||
|
|
Loading…
Reference in New Issue