1
0
Fork 0
forked from suyu/suyu

Merge pull request #1510 from wwylele/fix_pad

hid: fix pad update
This commit is contained in:
Yuri Kunde Schlesner 2016-03-13 10:04:52 -07:00
commit e07f193aff

View file

@ -68,7 +68,7 @@ void Update() {
mem->pad.current_state.hex = state.hex; mem->pad.current_state.hex = state.hex;
mem->pad.index = next_pad_index; mem->pad.index = next_pad_index;
next_touch_index = (next_touch_index + 1) % mem->pad.entries.size(); next_pad_index = (next_pad_index + 1) % mem->pad.entries.size();
// Get the previous Pad state // Get the previous Pad state
u32 last_entry_index = (mem->pad.index - 1) % mem->pad.entries.size(); u32 last_entry_index = (mem->pad.index - 1) % mem->pad.entries.size();