summaryrefslogtreecommitdiff
path: root/win32/plugins/PadSSSPSX/PadSSSPSX.cpp
diff options
context:
space:
mode:
authorSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-11-04 10:18:15 +0000
committerSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-11-04 10:18:15 +0000
commit25c14c6c5426a5345120a5cce8b60c23a2437730 (patch)
tree6cac0a2f02b1613d74529691426cc7478888bb5c /win32/plugins/PadSSSPSX/PadSSSPSX.cpp
parent536e7601cb2068e415ea1632e27d76aa8b6353c8 (diff)
downloadpcsxr-25c14c6c5426a5345120a5cce8b60c23a2437730.tar.gz
padssspsx: visual vibration option.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@71998 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'win32/plugins/PadSSSPSX/PadSSSPSX.cpp')
-rw-r--r--win32/plugins/PadSSSPSX/PadSSSPSX.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/win32/plugins/PadSSSPSX/PadSSSPSX.cpp b/win32/plugins/PadSSSPSX/PadSSSPSX.cpp
index 2034ef72..8de98114 100644
--- a/win32/plugins/PadSSSPSX/PadSSSPSX.cpp
+++ b/win32/plugins/PadSSSPSX/PadSSSPSX.cpp
@@ -563,6 +563,7 @@ static BOOL CALLBACK ConfigureDlgProc (const HWND hWnd, const UINT msg, const WP
tcI.pszText = "PAD2";
TabCtrl_InsertItem (hTabWnd, 1, &tcI);
CheckDlgButton(hWnd, IDC_DS2, global.config.dualshock);
+ CheckDlgButton(hWnd, IDC_VV3, global.config.visualvibration[0]);
EnableWindow(GetDlgItem(hWnd, IDC_BMODE), global.config.dualshock);
EnableWindow(GetDlgItem(hWnd, IDC_BLAX), global.config.dualshock);
EnableWindow(GetDlgItem(hWnd, IDC_BLAY), global.config.dualshock);
@@ -590,6 +591,7 @@ static BOOL CALLBACK ConfigureDlgProc (const HWND hWnd, const UINT msg, const WP
pad = TabCtrl_GetCurSel (hTabWnd);
for (cnt1 = 21; cnt1--; )
set_label (hWnd, pad, cnt1);
+ CheckDlgButton(hWnd, IDC_VV3, global.config.visualvibration[pad]);
}
break;
case WM_COMMAND:
@@ -629,6 +631,10 @@ static BOOL CALLBACK ConfigureDlgProc (const HWND hWnd, const UINT msg, const WP
EnableWindow(GetDlgItem(hWnd, IDC_EL3), global.config.dualshock);
EnableWindow(GetDlgItem(hWnd, IDC_ER3), global.config.dualshock);
}
+ else if (LOWORD (wParam) == IDC_VV3)
+ {
+ global.config.visualvibration[pad] ^= 1;
+ }
break;
case WM_TIMER:
if (disabled)
@@ -954,7 +960,8 @@ u8 CALLBACK PADpoll (u8 value)
{
global.padVibF[pad][0] = value;
- if (gpuVisualVibration != NULL && (global.padVibF[pad][0] || global.padVibF[pad][1]))
+ if (gpuVisualVibration != NULL && (global.padVibF[pad][0] || global.padVibF[pad][1]) &&
+ global.config.visualvibration[pad])
gpuVisualVibration(global.padVibF[pad][0], global.padVibF[pad][1]);
}
@@ -962,7 +969,8 @@ u8 CALLBACK PADpoll (u8 value)
{
global.padVibF[pad][1] = value;
- if (gpuVisualVibration != NULL && (global.padVibF[pad][0] || global.padVibF[pad][1]))
+ if (gpuVisualVibration != NULL && (global.padVibF[pad][0] || global.padVibF[pad][1]) &&
+ global.config.visualvibration[pad])
gpuVisualVibration(global.padVibF[pad][0], global.padVibF[pad][1]);
}
}