mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(Wii U) Ignore some bogus KPAD results
This API is completely bonkers, seems to have no idea what the error conditions are
This commit is contained in:
parent
8bde566019
commit
27b02d66aa
@ -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