Repository navigation
Conversation
macOS reports a Switch Pro Controller's face buttons by their labels (its buttonA is the button marked A, on the right), so the positional map, which assumes GameController's Xbox-style positions, swapped A/B and X/Y on it (macOS 27). Nintendo controllers (Pro Controller, Joy-Con: their product category or vendor name) now map by label and every other controller by position as before. DM_PAD_ABXY=label or position forces one map. The connect log line names the controller's product category and the map it got. Tested on a Mac with a Pro Controller over Bluetooth in Celeste: A confirms, B goes back. The iPhone's DmGamepad.m keeps the positional map; it may need the same, untested there. Co-Authored-By: Claude Opus 5.5 <[email protected]>
5 of 12 tasks
Contributor
|
Heads-up: #388 proposes treating controls as data that every UI writes (#388 (comment)): the key and button maps (#386's |
This was referenced Oct 27, 2026
Owner
|
Superseded by 90eca2f (PR #650), which shares automatic Nintendo face-button mapping between Mac and iOS. The unimplemented DM_PAD_ABXY manual override has been carried forward into the controls work: #386 (comment). Closing this overlapping implementation. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
macOS reports a Switch Pro Controller's face buttons by their labels (its
buttonA is the button marked A, on the right), so the positional map, which
assumes GameController's Xbox-style positions, swapped A/B and X/Y on it
(macOS 27). Nintendo controllers (Pro Controller, Joy-Con: their product
category or vendor name) now map by label and every other controller by
position as before. DM_PAD_ABXY=label or position forces one map. The connect
log line names the controller's product category and the map it got.
Tested on a Mac with a Pro Controller over Bluetooth in Celeste: A confirms,
B goes back. The iPhone's DmGamepad.m keeps the positional map; it may need the
same, untested there.
🤖 Generated with Claude Code