Skip to content

Tell a Nintendo pad by the launcher's rule in pad_apple.h - #835

Closed
v0lumehi wants to merge 1 commit into
seedds:mainfrom
v0lumehi:fix/pad-nintendo-category
Closed

v0lumehi wants to merge 1 commit into
seedds:mainfrom
v0lumehi:fix/pad-nintendo-category

Conversation

@v0lumehi

@v0lumehi v0lumehi commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

What and why

A Nintendo pad plays with A and B swapped in game. The engine counted a pad as Nintendo only when productCategory was exactly "Switch Pro Controller" or contained "Joy-Con". Any other pad was mapped by position, as an Xbox pad. A pad that reports another category string then gets B as select and A as back.

This matches productCategory case-insensitively, without "-" and spaces, on "nintendo", "switch" or "joycon". "Switch Pro Controller", "Nintendo Switch Joy-Con (L/R)" and "Nintendo Switch 2 Pro Controller" are Nintendo. Xbox, DualSense and generic pads stay mapped by position.

This is the rule the NX2Apple launcher uses to pick its own button glyphs, so the launcher and the game now agree. I do not know the exact productCategory of the pad that was reported. It is unconfirmed that this fixes that pad. I will ask the reporter to run it and say if the layout is right (LNPANDY/NX2Apple#346).

Checked

  • Tests: make -C dm/host/tests GAME=010015100B514000 run. t_pad_apple has new cases: "JoyCon", "nintendo switch pro controller", "Nintendo Switch 2 Pro Controller" (by label), and "Xbox Wireless Controller", "DualSense Wireless Controller", "Extended Gamepad" (by position). It failed before the change and passes after.
  • Games run, with title ID and version: none. No physical Nintendo pad was tried.
  • Devices and OS: build and unit test on a Mac only.

Docs

  • The finding is in its game note or its docs/reference/<subsystem>.md entry, and python3 dm/tools/docs_symptoms.py was run (the symptom index). Not needed, no new symptom.
  • A chain tool changed. Not applicable.
  • No game files, keys or data extracted from a game in the change or the attachments

A pad counted as Nintendo only when productCategory was exactly "Switch Pro Controller" or contained "Joy-Con". Any other Nintendo pad was mapped by position, so A and B (X and Y) came out swapped in game. Match case-insensitively without '-' and spaces on "nintendo", "switch" or "joycon". Xbox and PlayStation pads are unchanged.
@v0lumehi

v0lumehi commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

Closing this. The pad it was written for already worked with the existing rule, so there is no report that needs it. Sorry for the noise.

@v0lumehi v0lumehi closed this Nov 1, 2026
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.

1 participant