Skip to content

Commit

Permalink
port: don't call rumble function if rumble strength is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
fgsfdsfgs committed Jan 15, 2024
1 parent e53f26f commit 9cde121
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions port/src/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9cde121

Please sign in to comment.