mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
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:
parent
121ca3a482
commit
1dd15ac516
@ -889,6 +889,11 @@ static void get_device_name(HIDDevice *device, wiiu_attach_event *event)
|
|||||||
|
|
||||||
static wiiu_attach_event *new_attach_event(HIDDevice *device)
|
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));
|
wiiu_attach_event *event = alloc_zeroed(4, sizeof(wiiu_attach_event));
|
||||||
|
|
||||||
if (!event)
|
if (!event)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user