瀏覽代碼

HID: reset acceleroeter and gyroscope index in Init

wwylele 9 年之前
父節點
當前提交
2c7676d371
共有 1 個文件被更改,包括 2 次插入0 次删除
  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_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");