mirror of
https://github.com/godotengine/godot.git
synced 2024-11-15 00:23:27 +00:00
Merge pull request #29852 from georgwacker/fix-controller-hang
Fix endless controller iteration on windows
This commit is contained in:
commit
0f543ba99d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user