From b6129143f75cf4480883e467d52627de949466fb Mon Sep 17 00:00:00 2001 From: Stelios Tsampas Date: Tue, 18 Jul 2017 23:23:47 +0300 Subject: * Add setting to disable physical gamepad vibration. --- plugins/dfinput/sdljoy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/dfinput/sdljoy.c') 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); -- cgit v1.2.3