Skip to content

Commit 783852a

Browse files
committed
Lower Afterburner force feedback effect strength to previous levels
This was suggested by taylor on the forums and should match the previous values more closely.
1 parent 84fd712 commit 783852a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

code/io/joy_ff-sdl.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ static int joy_ff_create_effects()
326326
pAfterburn1.eff.periodic.direction.dir[0] = 0;
327327
pAfterburn1.eff.periodic.length = SDL_HAPTIC_INFINITY;
328328
pAfterburn1.eff.periodic.period = 20;
329-
pAfterburn1.eff.periodic.magnitude = 0x6665;
329+
pAfterburn1.eff.periodic.magnitude = 0x3332;
330330

331331
pAfterburn1.id = SDL_HapticNewEffect(haptic, &pAfterburn1.eff);
332332

@@ -344,7 +344,7 @@ static int joy_ff_create_effects()
344344
pAfterburn2.eff.periodic.direction.dir[0] = 9000;
345345
pAfterburn2.eff.periodic.length = 125;
346346
pAfterburn2.eff.periodic.period = 100;
347-
pAfterburn2.eff.periodic.magnitude = 0x3332;
347+
pAfterburn2.eff.periodic.magnitude = 0x1999;
348348

349349
pAfterburn2.id = SDL_HapticNewEffect(haptic, &pAfterburn2.eff);
350350

@@ -674,7 +674,7 @@ void joy_ff_docked()
674674

675675
SDL_HapticStopEffect(haptic, pDock.id);
676676

677-
pDock.eff.periodic.magnitude = 0x7fff;
677+
pDock.eff.periodic.magnitude = 0x3332;
678678

679679
if ( SDL_HapticUpdateEffect(haptic, pDock.id, &pDock.eff) < 0 ) {
680680
mprintf(("HapticERROR: Unable to update pDock:\n %s\n", SDL_GetError()));
@@ -695,7 +695,7 @@ void joy_ff_play_reload_effect()
695695

696696
SDL_HapticStopEffect(haptic, pDock.id);
697697

698-
pDock.eff.periodic.magnitude = 0x3fff;
698+
pDock.eff.periodic.magnitude = 0x1999;
699699

700700
if ( SDL_HapticUpdateEffect(haptic, pDock.id, &pDock.eff) < 0 ) {
701701
mprintf(("HapticERROR: Unable to update pDock:\n %s\n", SDL_GetError()));
@@ -716,7 +716,7 @@ void joy_ff_afterburn_on()
716716
SDL_HapticStopEffect(haptic, pAfterburn1.id);
717717

718718
pAfterburn1.eff.periodic.length = SDL_HAPTIC_INFINITY;
719-
pAfterburn1.eff.periodic.magnitude = 0x3fff;
719+
pAfterburn1.eff.periodic.magnitude = 0x3332;
720720

721721
if ( SDL_HapticUpdateEffect(haptic, pAfterburn1.id, &pAfterburn1.eff) < 0 ) {
722722
mprintf(("HapticERROR: Unable to update pAfterburn1:\n %s\n", SDL_GetError()));
@@ -727,7 +727,7 @@ void joy_ff_afterburn_on()
727727
SDL_HapticStopEffect(haptic, pAfterburn2.id);
728728

729729
pAfterburn2.eff.periodic.length = SDL_HAPTIC_INFINITY;
730-
pAfterburn2.eff.periodic.magnitude = 0x3fff;
730+
pAfterburn2.eff.periodic.magnitude = 0x1999;
731731

732732
if ( SDL_HapticUpdateEffect(haptic, pAfterburn2.id, &pAfterburn2.eff) < 0 ) {
733733
mprintf(("HapticERROR: Unable to update pAfterburn2:\n %s\n", SDL_GetError()));

0 commit comments

Comments
 (0)