diff options
| author | Stelios Tsampas <loathingkernel@gmail.com> | 2017-07-18 23:23:47 +0300 |
|---|---|---|
| committer | Stelios Tsampas <loathingkernel@gmail.com> | 2017-07-19 10:38:24 +0300 |
| commit | b6129143f75cf4480883e467d52627de949466fb (patch) | |
| tree | ef0717711d2b5c37dceb961061fe434afdd7c18a /plugins/dfinput/sdljoy.c | |
| parent | 966a413dda34bf31826ee1eab4d5a722a36087d6 (diff) | |
| download | pcsxr-b6129143f75cf4480883e467d52627de949466fb.tar.gz | |
* Add setting to disable physical gamepad vibration.
Diffstat (limited to 'plugins/dfinput/sdljoy.c')
| -rwxr-xr-x | plugins/dfinput/sdljoy.c | 2 |
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); |
