From 1dd15ac5162e9103c01c3459131f6bdd0aa8d636 Mon Sep 17 00:00:00 2001 From: gblues Date: Thu, 2 Dec 2021 03:43:19 -0800 Subject: [PATCH] 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 --- input/drivers_hid/wiiu_hid.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/input/drivers_hid/wiiu_hid.c b/input/drivers_hid/wiiu_hid.c index ccb928f6a3..3a91612f8a 100644 --- a/input/drivers_hid/wiiu_hid.c +++ b/input/drivers_hid/wiiu_hid.c @@ -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)