Repository navigation
Conversation
An Xbox controller's face buttons are mapped by position, as on the console: its bottom button, printed A, presses the Switch's B, and its right button, printed B, presses A. That keeps the console's layout, but a player used to the Xbox letters presses A to confirm and goes back instead. pad_apple.h already maps a Nintendo pad name for name. DM_PAD_LETTERS=1, Face buttons by letter in the Controls section and off by default, maps every pad that way, since GameController's buttonA to buttonY are an Xbox pad's printed letters. With it off nothing changes. The Mac front end and the iOS gamepad read it at start beside DM_PAD_PRESS_TO_JOIN and log it when on. t_pad_apple checks both mappings for every pad category. The settings list, docs/settings.md, docs/env_switches.tsv and docs/development.md name it. Checked: t_pad_apple, the Mac host build, and the settings, launcher settings, environment switch, player environment and docs tool tests. The same mapping, carried as a local patch, has been used with an Xbox Wireless Controller on a MacBook Air (M5) since 2026-11-15. Not checked: the iOS build, which CI makes, and regress.py, since the change is input only and the default path is unchanged. Front-ends: new: DM_PAD_LETTERS, a toggle in the settings list's Controls section
|
The four failing checks fail the same way on
That assertion stopped both host jobs before |
|
Hi! This branch is based on a To pick up the fix, merge the current git fetch origin
git merge origin/main
git pushIf the merge has conflicts, ask here if you want help with them. |
|
Thanks for putting this together and testing it with an Xbox Wireless Controller, @suuperior. PR #3387 now carries the same opt-in DM_PAD_LETTERS setting across GameController pads (Mac and iOS) as well as raw HID pads and the Steam Controller, while this branch is narrower and currently conflicts with main. We'll keep your positional-vs-letter usability example in mind as #3387 is reviewed. Closing this PR as superseded by #3387. |
What and why
An Xbox controller's face buttons are mapped by position, as on the console: its bottom button, printed A, presses the Switch's B. A player used to the Xbox letters presses A to confirm and goes back instead. This adds Face buttons by letter (
DM_PAD_LETTERS), a Controls setting, off by default, that maps every pad by its letters, as a Nintendo pad already is (pad_apple.h). With it off nothing changes.Checked
t_pad_apple(both mappings, every pad category); thetest_settings,test_launcher_settings,test_env_switches,test_player_envandtest_docstool tests. Removing the new row fromdocs/env_switches.tsvmakestest_env_switchesfail, as it should.make -C dm/host, Civilization VI's profile) with no new warnings.scripts/regress.pywas not run: the change is input only, and with the setting off the code path is the one onmain.Front ends
Front-ends: new: DM_PAD_LETTERS, a toggle in the settings list's Controls section
Docs
docs/settings.md(a section and its row in the file table),docs/env_switches.tsv,docs/development.md.🤖 Generated with Claude Code