Merge pull request #12676 from QuarkTheAwesome/kpad-fix

(Wii U) Fix inputs breaking when connecting/disconnecting remotes
This commit is contained in:
Autechre 2021-07-19 14:24:51 +02:00 committed by GitHub
commit ea18d4ffcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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