summaryrefslogtreecommitdiff
path: root/platform/windows
diff options
context:
space:
mode:
authorGeorg Wacker <contact@georgwacker.com>2019-06-17 18:01:09 +0200
committerGeorg Wacker <contact@georgwacker.com>2019-06-17 18:01:09 +0200
commit4014888687f3c3f3afd8f1270a3b35b500217423 (patch)
tree807905a0606ea686ad6d58c22c612a7d335fa54b /platform/windows
parent1d93b4abef16d0f930ba305fd7948c9e48770a2d (diff)
Fix endless controller iteration
Fixes #29846
Diffstat (limited to 'platform/windows')
-rw-r--r--platform/windows/joypad_windows.cpp2
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;