Repository navigation
Conversation
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.
4 of 6 tasks
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. |
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.
What and why
A Nintendo pad plays with A and B swapped in game. The engine counted a pad as Nintendo only when
productCategorywas 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
productCategorycase-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
productCategoryof 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
make -C dm/host/tests GAME=010015100B514000 run.t_pad_applehas 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.Docs
docs/reference/<subsystem>.mdentry, andpython3 dm/tools/docs_symptoms.pywas run (the symptom index). Not needed, no new symptom.