From 9cde121b52bc93c41cb37083422fc61bda9c6503 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Mon, 15 Jan 2024 12:58:00 +0100 Subject: [PATCH] port: don't call rumble function if rumble strength is 0 --- port/src/input.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/port/src/input.c b/port/src/input.c index a4b14d0e5..96438e3f6 100644 --- a/port/src/input.c +++ b/port/src/input.c @@ -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) {