Merge pull request #108 from quark-zju/rumble

Fix Rumble feature for bluetooth devices
This commit is contained in:
David Khachaturov 2019-02-03 12:04:16 +00:00 committed by GitHub
commit 3eddf935c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.