forked from torvalds/linux
-
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.
HID: nintendo: Add support for the Nintendo Switch SNES controller.
It basically acts like a Pro controller but without analog sticks. A separate mapping has been added to correctly represent its button layout and report the d-pad inputs as a hat instead ofseparate buttons. A macro to determine whether or not the controller has a USB port has also been added to make the code clearer when this is checked since there are now more possible devices. Signed-off-by: Nadia Holmquist Pedersen <nadia@nhp.sh>
- Loading branch information
1 parent
684a84a
commit bdf4626
Showing
2 changed files
with
96 additions
and
18 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