From dd5ac8b9f113aedd56aa77d588f30310448e0aad Mon Sep 17 00:00:00 2001 From: pagefault <> Date: Mon, 6 Feb 2006 20:29:32 +0000 Subject: [PATCH] You can now use gamepad in the background without ZSNES having focus --- zsnes/src/win/winlink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsnes/src/win/winlink.cpp b/zsnes/src/win/winlink.cpp index b4bfc659..57003c82 100644 --- a/zsnes/src/win/winlink.cpp +++ b/zsnes/src/win/winlink.cpp @@ -1025,7 +1025,7 @@ BOOL FAR PASCAL InitJoystickInput(LPCDIDEVICEINSTANCE pdinst, LPVOID pvRef) return DIENUM_CONTINUE; } - if (JoystickInput[CurrentJoy]->SetCooperativeLevel(hMainWindow, DISCL_NONEXCLUSIVE | DISCL_FOREGROUND) != DI_OK) + if (JoystickInput[CurrentJoy]->SetCooperativeLevel(hMainWindow, DISCL_EXCLUSIVE | DISCL_BACKGROUND) != DI_OK) { JoystickInput[CurrentJoy]->Release(); return DIENUM_CONTINUE;