(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:
Ash Logan 2021-07-19 16:59:41 +10:00
parent 8bde566019
commit 27b02d66aa

View File

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