Repository navigation
DM_PAD_LAYOUT=name: a controller's face buttons by their letters, and a docs tip on swapping them (issue #2170) - #2196
Closed
Atomsk-debug wants to merge 1 commit into
Closed
Atomsk-debug wants to merge 1 commit into
Atomsk-debug wants to merge 1 commit into
Conversation
…: the button marked A on an Xbox pad is the game's A, in that game only, and the docs say macOS's own controller settings can swap them too (issue seedds#2170) Co-Authored-By: Claude Fable 5.2 <[email protected]>
2 of 3 tasks
Ayymeric
pushed a commit
to Ayymeric/nxnative
that referenced
this pull request
Nov 17, 2026
An Xbox or PlayStation pad maps by position by default, as Switch emulators do: the right button is A. DM_PAD_MAP=label (launcher: Face buttons, By label) maps GameController's buttonA, the bottom button an Xbox pad marks A, to the Switch's A, buttonB to B, X to X and Y to Y, as PC games read an Xbox pad, so the letters the game asks for are the pad's. Nintendo pads map name for name either way; raw HID pads keep DM_HID_MAP. On the Mac and iOS (pad_apple.h). The host also tells a build's stubs (frame step state +0xb0), for prompts that follow the layout. Other pull requests propose the same mapping under other names (seedds#1481 DM_PAD_LABELS, seedds#2196 DM_PAD_LAYOUT); seedds#386 uses the name DM_PAD_MAP for a remap. The name here can follow whichever is taken. Front-ends: new: DM_PAD_MAP (Face buttons: position, label), in launcher.json for every game Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
|
Thanks for covering Xbox, DualSense and Pro Controller mappings and for documenting the macOS controller remap. I’m closing this in favor of #3018, which proposes the same four-button mapping as a launcher setting and covers it in the shared pad tests. The default on main is still positional. The macOS remap tip is useful while the setting is under review. |
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.
Issue #2170: with an Xbox pad the game's A sits on the button marked B, because face buttons map by position. This adds the two things the issue proposes.
DM_PAD_LAYOUT=namein a game'senv.txtmaps every controller's face buttons name for name, as a Nintendo pad's already are. The default (by position) is unchanged, and any other value is by position.docs/playing.mdgets a Face buttons paragraph: the default, the switch, and that macOS's own controller settings can swap the buttons for every app.The change is in
dm_pad_face(dm/host/pad_apple.h), which the Mac front end and the iOS gamepad share, so the switch works on both. The switch is read once. The Home hold prompt is not changed: it reads GameController's names either way, and the docs say so.Tested
t_pad_apple, extended: by name for Xbox, DualSense and Pro Controller pads, and the switch itself. The Makefile runs it unset and withDM_PAD_LAYOUT=name; I also ranDM_PAD_LAYOUT=position. All pass.dmhostbuilds (GAME=0100152000022000).python3 dm/tools/env_switches.py --checkanddm/tools/tests/test_docs.pypass.Not tested
t_pad_appleonly.🤖 Generated with Claude Code