From 63b38e48ba57f087f22ff48473886d7ea93bac36 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Tue, 3 Oct 2023 11:03:27 +0200 Subject: [PATCH] port: actually use RumbleScale --- port/src/input.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/port/src/input.c b/port/src/input.c index d9271070b..4f35e5e14 100644 --- a/port/src/input.c +++ b/port/src/input.c @@ -35,7 +35,7 @@ static s32 mouseWheel = 0; static f32 mouseSensX = 1.5f; static f32 mouseSensY = 1.5f; -static f32 rumbleScale = 0.333f; +static f32 rumbleScale = 0.5f; // NOTE: by default this gets inverted for 1.2 static u32 axisMap[2][2] = { @@ -431,7 +431,7 @@ s32 inputInit(void) mouseSensX = configGetFloat("Input.MouseSpeedX", 1.5f); mouseSensY = configGetFloat("Input.MouseSpeedY", 1.5f); - rumbleScale = configGetFloat("Input.RumbleScale", 0.333f); + rumbleScale = configGetFloat("Input.RumbleScale", 0.5f); deadzone[0] = configGetInt("Input.LStickDeadzoneX", DEFAULT_DEADZONE); deadzone[1] = configGetInt("Input.LStickDeadzoneY", DEFAULT_DEADZONE); @@ -611,6 +611,7 @@ void inputRumble(s32 idx, f32 strength, f32 time) } if (rumbleSupported[idx]) { + strength *= rumbleScale; if (strength <= 0.f) { strength = 0.f; time = 0.f;