Browse Source

Merge pull request #29852 from georgwacker/fix-controller-hang

Fix endless controller iteration on windows
Rémi Verschelde 6 years ago
parent
commit
0f543ba99d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      platform/windows/joypad_windows.cpp

+ 1 - 1
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;