Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PBTails Gamepad (Nintendo Switch Pro Controller) #521

Closed
wants to merge 1 commit into from

Conversation

samermurad
Copy link

So there is this controller: https://www.pbtails.com/

Which Identifies itself as "Nintendo Switch Pro Controller", the specification of the layout looks like so:

Joystick Name: Nintendo Switch Pro Controller
GUID: 030000007e0500000920000001006800
6 axes (RT and LT are read as an axis)
0 trackballs
0 hat(s)
16 buttons

I've tested it only on macOS, so I don't know if it gets the same Id on all platforms?

The controller still works without the specification, but the X/O Triangle/Square behavior is flipped (Nintendo style), this specification gives the expected result

So there is this controller: https://www.pbtails.com/

Which Identifies itself as "Nintendo Switch Pro Controller", the specification of the layout looks like so:

Joystick Name: Nintendo Switch Pro Controller
GUID: 030000007e0500000920000001006800
6 axes
0 trackballs
0 hat(s)
16 buttons

I've tested it only on macOS, so I don't know if it gets the same Id on all platforms?
@offalynne
Copy link
Collaborator

offalynne commented Dec 6, 2021

Thanks for the PR.

The GUID tail suggests the DB shouldn't need this mapping since the device is handled by SDL's HIDAPI mapping: #478

The controller still works without the specification, but the X/O Triangle/Square behavior is flipped (Nintendo style), this specification gives the expected result

I don't exactly understand the problem you're having here, but since the device reports the same as the Switch Pro controller, you'll have to take the mapping issue upstream to SDL if it needs addressing.

@offalynne offalynne closed this Dec 6, 2021
@samermurad
Copy link
Author

What I meant by it is that the right side button, A/B X/Y, are flipped, so without the provided specification, the controller clicks Y when clicking X, A when clicking B, and vice versa, from the mapping, it seems the rest of the Nintendo controllers have the same manual fix, of setting a:b1,b:b0,x:b3,y:b2 instead of a:b0,b:b1,x:b2,y:b3, so I'm sure this should be upstreamed? or maybe Im getting this wrong, I'll read through tickets and post again, thanks for the quick response though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants