port: don't call rumble function if rumble strength is 0

This commit is contained in:
fgsfds committed 2024-01-15 12:58:00 +01:00
1 parent e53f26f3eb
commit 9cde121b52
1 file changed
+4
+4
View File
@@ -838,6 +838,10 @@ void inputRumble(s32 idx, f32 strength, f32 time)
return;
}
if (padsCfg[idx].rumbleScale <= 0.f) {
return;
}
if (padsCfg[idx].rumbleOn) {
strength *= padsCfg[idx].rumbleScale;
if (strength <= 0.f) {