diff options
author | Georg Wacker <contact@georgwacker.com> | 2019-06-17 18:01:09 +0200 |
---|---|---|
committer | Georg Wacker <contact@georgwacker.com> | 2019-06-17 18:01:09 +0200 |
commit | 4014888687f3c3f3afd8f1270a3b35b500217423 (patch) | |
tree | 807905a0606ea686ad6d58c22c612a7d335fa54b /platform/windows | |
parent | 1d93b4abef16d0f930ba305fd7948c9e48770a2d (diff) |
Fix endless controller iteration
Fixes #29846
Diffstat (limited to 'platform/windows')
-rw-r--r-- | platform/windows/joypad_windows.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/joypad_windows.cpp b/platform/windows/joypad_windows.cpp index 432060f4fe..53ce342e8c 100644 --- a/platform/windows/joypad_windows.cpp +++ b/platform/windows/joypad_windows.cpp @@ -334,7 +334,7 @@ void JoypadWindows::process_joypads() { if (joy.state.dwPacketNumber != joy.last_packet) { int button_mask = XINPUT_GAMEPAD_DPAD_UP; - for (int j = 0; j <= 16; i++) { + for (int j = 0; j <= 16; j++) { input->joy_button(joy.id, j, joy.state.Gamepad.wButtons & button_mask); button_mask = button_mask * 2; |