Parcourir la source

HID: reset acceleroeter and gyroscope index in Init

wwylele il y a 9 ans
Parent
commit
2c7676d371
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/core/hle/service/hid/hid.cpp

+ 2 - 0
src/core/hle/service/hid/hid.cpp

@@ -320,6 +320,8 @@ void Init() {
 
 
     next_pad_index = 0;
     next_pad_index = 0;
     next_touch_index = 0;
     next_touch_index = 0;
+    next_accelerometer_index = 0;
+    next_gyroscope_index = 0;
 
 
     // Create event handles
     // Create event handles
     event_pad_or_touch_1 = Event::Create(ResetType::OneShot, "HID:EventPadOrTouch1");
     event_pad_or_touch_1 = Event::Create(ResetType::OneShot, "HID:EventPadOrTouch1");