| Summary: | [Patch] Add support for official Nintendo USB GameCube adapter | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ethan Lee <flibitijibibo> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | enhancement | ||
| Priority: | P2 | CC: | icculus |
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: |
Patch to add HIDAPI support for WUP-028
Patch to add L/R buttons |
||
Patch added, thanks! https://hg.libsdl.org/SDL/rev/64597a7e8771 Created attachment 3699 [details]
Patch to add L/R buttons
Oh wow, that was fast...
As a bonus, here's one more patch to add the bottom L/R buttons to the joystick. GameController won't use them, but maybe someone will find them useful anyway.
Totally forgot about this... reopening so I don't forget about attachment 3699 [details] again.
Added, thanks! https://hg.libsdl.org/SDL/rev/704ec541957d |
Created attachment 3697 [details] Patch to add HIDAPI support for WUP-028 Attached is a patch to add HIDAPI-based support for Nintendo's USB GameCube controller adapter for Wii U and Nintendo Switch. Currently this is only supported on Linux due to the bogus HID information that the hardware returns, meaning the macOS/Windows HID drivers intercept the device only to do nothing with them while preventing us from reading the device ourselves. This can be fixed by introducting hidapi-libusb support for all platforms (not just Linux) but that's a different patch for another day. The main concern here is the DeviceDriver rewrite - to support all 4 slots, I had to completely redo the function table to bring the joystick enumeration into the driver itself. It makes sense for the GameCube adapter, but obviously all the other drivers will just care about the one joystick per device. I _think_ I updated everything correctly, but this will need a fair amount of testing first.