diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/hid/hid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index 2d2133b2e..feac53816 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp | |||
| @@ -58,7 +58,7 @@ void Update() { | |||
| 58 | 58 | ||
| 59 | mem->pad.current_state.hex = state.hex; | 59 | mem->pad.current_state.hex = state.hex; |
| 60 | mem->pad.index = next_pad_index; | 60 | mem->pad.index = next_pad_index; |
| 61 | ++next_touch_index %= mem->pad.entries.size(); | 61 | next_touch_index = (next_touch_index + 1) % mem->pad.entries.size(); |
| 62 | 62 | ||
| 63 | // Get the previous Pad state | 63 | // Get the previous Pad state |
| 64 | u32 last_entry_index = (mem->pad.index - 1) % mem->pad.entries.size(); | 64 | u32 last_entry_index = (mem->pad.index - 1) % mem->pad.entries.size(); |
| @@ -88,7 +88,7 @@ void Update() { | |||
| 88 | } | 88 | } |
| 89 | 89 | ||
| 90 | mem->touch.index = next_touch_index; | 90 | mem->touch.index = next_touch_index; |
| 91 | ++next_touch_index %= mem->touch.entries.size(); | 91 | next_touch_index = (next_touch_index + 1) % mem->touch.entries.size(); |
| 92 | 92 | ||
| 93 | // Get the current touch entry | 93 | // Get the current touch entry |
| 94 | TouchDataEntry* touch_entry = &mem->touch.entries[mem->touch.index]; | 94 | TouchDataEntry* touch_entry = &mem->touch.entries[mem->touch.index]; |