summaryrefslogtreecommitdiff
path: root/win32/plugins/PadSSSPSX/PadSSSPSX.cpp
diff options
context:
space:
mode:
authorSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-08-30 09:32:14 +0000
committerSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-08-30 09:32:14 +0000
commitde8e31e9f014b0db99d98620e0e2199b4ce967fa (patch)
treede18c27f35486ce5138b2ea84c54439084186ea7 /win32/plugins/PadSSSPSX/PadSSSPSX.cpp
parent0d01c344bc221ac3b5b7d19a72c630ca138047d1 (diff)
downloadpcsxr-de8e31e9f014b0db99d98620e0e2199b4ce967fa.tar.gz
PadSSSPSX, 'background' option for gamepads;
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@87027 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'win32/plugins/PadSSSPSX/PadSSSPSX.cpp')
-rwxr-xr-xwin32/plugins/PadSSSPSX/PadSSSPSX.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/win32/plugins/PadSSSPSX/PadSSSPSX.cpp b/win32/plugins/PadSSSPSX/PadSSSPSX.cpp
index 8c494e4d..415d4727 100755
--- a/win32/plugins/PadSSSPSX/PadSSSPSX.cpp
+++ b/win32/plugins/PadSSSPSX/PadSSSPSX.cpp
@@ -151,7 +151,7 @@ static bool InitDirectInput (void)
if (hTargetWnd)
{
pDDevice->Unacquire();
- result = pDDevice->SetCooperativeLevel (hTargetWnd, DISCL_FOREGROUND | DISCL_EXCLUSIVE);
+ result = pDDevice->SetCooperativeLevel (hTargetWnd, (global.config.background ? DISCL_BACKGROUND : DISCL_FOREGROUND) | DISCL_EXCLUSIVE);
if (FAILED (result))
return ReleaseDirectInput();
}
@@ -564,6 +564,7 @@ static BOOL CALLBACK ConfigureDlgProc (const HWND hWnd, const UINT msg, const WP
TabCtrl_InsertItem (hTabWnd, 1, &tcI);
CheckDlgButton(hWnd, IDC_DS2, global.config.dualshock);
CheckDlgButton(hWnd, IDC_VV3, global.config.visualvibration[0]);
+ CheckDlgButton(hWnd, IDC_BG, global.config.background);
EnableWindow(GetDlgItem(hWnd, IDC_BMODE), global.config.dualshock);
EnableWindow(GetDlgItem(hWnd, IDC_BLAX), global.config.dualshock);
EnableWindow(GetDlgItem(hWnd, IDC_BLAY), global.config.dualshock);
@@ -635,6 +636,10 @@ static BOOL CALLBACK ConfigureDlgProc (const HWND hWnd, const UINT msg, const WP
{
global.config.visualvibration[pad] ^= 1;
}
+ else if (LOWORD (wParam) == IDC_BG)
+ {
+ global.config.background ^= 1;
+ }
break;
case WM_TIMER:
if (disabled)