From 390313b3da453be25228b1bb054919d57c8d462f Mon Sep 17 00:00:00 2001 From: Jun Wu Date: Sat, 2 Feb 2019 21:39:25 -0800 Subject: [PATCH] Fix Rumble feature for bluetooth devices When rumble_obj.t >= 0, SendRumble should be frequently called to make Rumbling actually work. --- BetterJoyForCemu/Joycon.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BetterJoyForCemu/Joycon.cs b/BetterJoyForCemu/Joycon.cs index 3a5cb16..12a3ec8 100644 --- a/BetterJoyForCemu/Joycon.cs +++ b/BetterJoyForCemu/Joycon.cs @@ -456,7 +456,7 @@ namespace BetterJoyForCemu { Stopwatch watch = new Stopwatch(); watch.Start(); while (!stop_polling & state > state_.NO_JOYCONS) { - if (isUSB) + if (isUSB || rumble_obj.t > 0) SendRumble(rumble_obj.GetData()); else if (watch.ElapsedMilliseconds >= 1000f / timing) { // Send a no-op operation as heartbeat to keep connection alive.