summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-01-21 03:14:44 +0100
committerGitHub <noreply@github.com>2017-01-21 03:14:44 +0100
commit25c5aa586985069d42e61adb535c07f5c1784545 (patch)
tree3f713a1975e1ac290edb4b980c9bc1a9f0b89657
parentMerge pull request #2459 from 3ds-emu/patch-1 (diff)
parentHID: reset acceleroeter and gyroscope index in Init (diff)
downloadyuzu-25c5aa586985069d42e61adb535c07f5c1784545.tar
yuzu-25c5aa586985069d42e61adb535c07f5c1784545.tar.gz
yuzu-25c5aa586985069d42e61adb535c07f5c1784545.tar.bz2
yuzu-25c5aa586985069d42e61adb535c07f5c1784545.tar.lz
yuzu-25c5aa586985069d42e61adb535c07f5c1784545.tar.xz
yuzu-25c5aa586985069d42e61adb535c07f5c1784545.tar.zst
yuzu-25c5aa586985069d42e61adb535c07f5c1784545.zip
-rw-r--r--src/core/hle/service/hid/hid.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index 9bca97c1c..f14ab3811 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -320,6 +320,8 @@ void Init() {
next_pad_index = 0;
next_touch_index = 0;
+ next_accelerometer_index = 0;
+ next_gyroscope_index = 0;
// Create event handles
event_pad_or_touch_1 = Event::Create(ResetType::OneShot, "HID:EventPadOrTouch1");