Skip to content

Commit a0a05c2

Browse files
committed
fix env name for adjusting lg4ff damper effect gain
1 parent 6a9788b commit a0a05c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/haptic/hidapi/SDL_hidapihaptic_lg4ff.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ static void *SDL_HIDAPI_HapticDriverLg4ff_Open(SDL_Joystick *joystick)
909909
}
910910

911911
ctx->spring_level = SDL_HIDAPI_HapticDriverLg4ff_GetEnvInt("SDL_HAPTIC_LG4FF_SPRING", 0, 100, 30);
912-
ctx->damper_level = SDL_HIDAPI_HapticDriverLg4ff_GetEnvInt("SDL_HAPTIC_LG4FF_SPRING", 0, 100, 30);
912+
ctx->damper_level = SDL_HIDAPI_HapticDriverLg4ff_GetEnvInt("SDL_HAPTIC_LG4FF_DAMPER", 0, 100, 30);
913913
ctx->friction_level = SDL_HIDAPI_HapticDriverLg4ff_GetEnvInt("SDL_HAPTIC_LG4FF_FRICTION", 0, 100, 30);
914914
ctx->gain = SDL_HIDAPI_HapticDriverLg4ff_GetEnvInt("SDL_HAPTIC_LG4FF_GAIN", 0, 65535, 65535);
915915
ctx->app_gain = 65535;

0 commit comments

Comments
 (0)