forked from Ports/perfect_dark
port: don't call rumble function if rumble strength is 0
This commit is contained in:
1 parent
e53f26f3eb
commit
9cde121b52
1 file changed
+4
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user