diff options
| author | 2021-05-17 15:45:53 -0400 | |
|---|---|---|
| committer | 2021-05-18 03:39:21 -0400 | |
| commit | a9d8e24e4722d26500aaa0cfd4a11ff1380b3bdf (patch) | |
| tree | 184c3661d7ff67c9ae539762e28a4377aa744b43 | |
| parent | hid/gesture: Make Point a template (diff) | |
| download | yuzu-a9d8e24e4722d26500aaa0cfd4a11ff1380b3bdf.tar.gz yuzu-a9d8e24e4722d26500aaa0cfd4a11ff1380b3bdf.tar.xz yuzu-a9d8e24e4722d26500aaa0cfd4a11ff1380b3bdf.zip | |
hid/gesture: Ensure all ID arrays are initialized
Makes for deterministic initial state.
| -rw-r--r-- | src/core/hle/service/hid/controllers/gesture.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/hid/controllers/gesture.h b/src/core/hle/service/hid/controllers/gesture.h index b2bcae2b7..c1578ec25 100644 --- a/src/core/hle/service/hid/controllers/gesture.h +++ b/src/core/hle/service/hid/controllers/gesture.h | |||
| @@ -180,10 +180,10 @@ private: | |||
| 180 | std::unique_ptr<Input::TouchDevice> touch_mouse_device; | 180 | std::unique_ptr<Input::TouchDevice> touch_mouse_device; |
| 181 | std::unique_ptr<Input::TouchDevice> touch_udp_device; | 181 | std::unique_ptr<Input::TouchDevice> touch_udp_device; |
| 182 | std::unique_ptr<Input::TouchDevice> touch_btn_device; | 182 | std::unique_ptr<Input::TouchDevice> touch_btn_device; |
| 183 | std::array<size_t, MAX_FINGERS> mouse_finger_id; | 183 | std::array<size_t, MAX_FINGERS> mouse_finger_id{}; |
| 184 | std::array<size_t, MAX_FINGERS> keyboard_finger_id; | 184 | std::array<size_t, MAX_FINGERS> keyboard_finger_id{}; |
| 185 | std::array<size_t, MAX_FINGERS> udp_finger_id; | 185 | std::array<size_t, MAX_FINGERS> udp_finger_id{}; |
| 186 | std::array<Finger, MAX_POINTS> fingers; | 186 | std::array<Finger, MAX_POINTS> fingers{}; |
| 187 | GestureProperties last_gesture{}; | 187 | GestureProperties last_gesture{}; |
| 188 | s64_le last_update_timestamp{}; | 188 | s64_le last_update_timestamp{}; |
| 189 | s64_le last_tap_timestamp{}; | 189 | s64_le last_tap_timestamp{}; |