forked from libsdl-org/SDL
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Wii U Pro Controller support to HIDAPI driver
- Loading branch information
1 parent
cbe97cb
commit 1497d8e
Showing
8 changed files
with
877 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
1497d8e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upstreamed! :)
1497d8e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@slouken Nice!
A few things to note:
There's a second commit here 2f288e9 which has Wiimote things (100% untested, as I only own a Wii U Pro controller). I don't remember if it includes improvements to the Wii U Pro Controller part of the driver, but I think it might.
The driver changes the name of the controller as extensions are plugged and unplugged, which means freeing old name strings as it makes new ones. Not sure if this is something that's considered okay or not. If not, that should be changed.
Wii U Pro controller support is tested and working for all macOSes that can pair the controller. On Linux, there was an issue where the kernel driver for the pro controller would turn off the controller's extended mode at random. I don't remember if I pushed the fix or not (detecting the response from the request to turn it off and turning it back on).
1497d8e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I merged in your changes and added some fixes.
I also changed it to re-enumerate the controller if the extension changes. I have the classic controllers coming next week so I can verify support for those.
Thanks!