Fix Rumble feature for bluetooth devices

When rumble_obj.t >= 0, SendRumble should be frequently called to make
Rumbling actually work.
This commit is contained in:
Jun Wu 2019-02-02 21:39:25 -08:00
parent 9e542510a9
commit 390313b3da

View file

@ -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.