aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services
diff options
context:
space:
mode:
authoremmauss <emmausssss@gmail.com>2020-10-28 19:52:07 +0000
committerGitHub <noreply@github.com>2020-10-28 20:52:07 +0100
commit9f13f957af9cf3691c22ff67b5dc28a588024b4d (patch)
treea1ff74d57fe9983b3fa1b52cba78ac5a63f70656 /Ryujinx.HLE/HOS/Services
parentc9841dab38b85b638a142ca1bd7079d147f70cf3 (diff)
Motion Fixes (#1589)
* fix stalling when server is offline * add retry timer to fail server connections, fix alt slot number * fix alt slot key issue * fix crash when saving controller config with empty fields * code fixes * add index check in motion hid update, made HandleResponse async Co-authored-by: Emmanuel <nhv3@localhost.localdomain>
Diffstat (limited to 'Ryujinx.HLE/HOS/Services')
-rw-r--r--Ryujinx.HLE/HOS/Services/Hid/HidDevices/NpadDevices.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Hid/HidDevices/NpadDevices.cs b/Ryujinx.HLE/HOS/Services/Hid/HidDevices/NpadDevices.cs
index 0decbfea..2150f278 100644
--- a/Ryujinx.HLE/HOS/Services/Hid/HidDevices/NpadDevices.cs
+++ b/Ryujinx.HLE/HOS/Services/Hid/HidDevices/NpadDevices.cs
@@ -337,6 +337,11 @@ namespace Ryujinx.HLE.HOS.Services.Hid
{
i++;
+ if (i >= states.Count)
+ {
+ return;
+ }
+
SetSixAxisState(states[i], true);
}
}