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

Fix endless controller iteration on windows
This commit is contained in:
Rémi Verschelde 2019-06-17 18:58:41 +02:00 committed by GitHub
commit 0f543ba99d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;