WIIU: Fix keyboard support (#13308)

== DETAILS
The problem was caused by changing the driver lookup point. The deferred
lookup resulted in the WIIU trying to treat the keyboard as a gamepad which ...
didn't work.

This change short-circuits at the connection event by ignoring mouse &
keyboard connection events.

Tested this with a dev build.

Co-authored-by: Nathan Strong <nstrong@tripwire.com>
This commit is contained in:
gblues 2021-12-02 03:43:19 -08:00 committed by GitHub
parent 121ca3a482
commit 1dd15ac516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -889,6 +889,11 @@ static void get_device_name(HIDDevice *device, wiiu_attach_event *event)
static wiiu_attach_event *new_attach_event(HIDDevice *device)
{
if(device->protocol > 0)
{
/* ignore mice and keyboards as HID devices */
return NULL;
}
wiiu_attach_event *event = alloc_zeroed(4, sizeof(wiiu_attach_event));
if (!event)