mirror of
https://github.com/libretro/RetroArch
synced 2025-03-17 10:21:26 +00:00
Merge pull request #12676 from QuarkTheAwesome/kpad-fix
(Wii U) Fix inputs breaking when connecting/disconnecting remotes
This commit is contained in:
commit
ea18d4ffcb
@ -251,6 +251,12 @@ static void kpad_poll(void)
|
||||
}
|
||||
poll_failures[channel] = 0;
|
||||
|
||||
/* Several reads when a device is connected or an attachment added give */
|
||||
/* bogus results, try to weed them out */
|
||||
if (kpad.wpad_error || kpad.device_type == 255) {
|
||||
continue;
|
||||
}
|
||||
|
||||
kpad_poll_one_channel(channel, &kpad);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user