summaryrefslogtreecommitdiff
path: root/plugins/dfinput/sdljoy.c
diff options
context:
space:
mode:
authorStelios Tsampas <loathingkernel@gmail.com>2017-07-18 23:23:47 +0300
committerStelios Tsampas <loathingkernel@gmail.com>2017-07-19 10:38:24 +0300
commitb6129143f75cf4480883e467d52627de949466fb (patch)
treeef0717711d2b5c37dceb961061fe434afdd7c18a /plugins/dfinput/sdljoy.c
parent966a413dda34bf31826ee1eab4d5a722a36087d6 (diff)
downloadpcsxr-b6129143f75cf4480883e467d52627de949466fb.tar.gz
* Add setting to disable physical gamepad vibration.
Diffstat (limited to 'plugins/dfinput/sdljoy.c')
-rwxr-xr-xplugins/dfinput/sdljoy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/dfinput/sdljoy.c b/plugins/dfinput/sdljoy.c
index ee139517..d9bc23a3 100755
--- a/plugins/dfinput/sdljoy.c
+++ b/plugins/dfinput/sdljoy.c
@@ -64,7 +64,7 @@ int JoyHapticRumble(int pad, uint32_t low, uint32_t high)
#if SDL_VERSION_ATLEAST(2,0,0)
float mag;
- if (g.PadState[pad].haptic) {
+ if (g.PadState[pad].haptic && g.cfg.PadDef[pad].PhysicalVibration) {
/* Stop the effect if it was playing. */
SDL_HapticRumbleStop(g.PadState[pad].haptic);