Repository navigation
Conversation
The engine only treated "Switch Pro Controller" and "Joy-Con" pads as Nintendo, so other Nintendo pads got the Xbox layout in game. The patch follows the launcher's rule. Part 2 of #346.
5ef09e9 to
42b0315
Compare
|
@v0lumehi Sorry, I should've clarified the controller type in the original post. It is an 8BitDo Ultimate 2C+ Bluetooth that MacOS reads as a Switch Pro controller. I launched NX2Apple on my v0.7.5 build, it received new build commits and the controller button inputs in-game now properly match the Nintendo button inputs as the NX2Apple launcher does. I tested it on v0.8.0 RC1 and it works as normal there too as well. I'm not sure if this is the appropriate place to put this but I just now noticed on v0.8.0 RC1 with the console mode fullscreen -> in-game fullscreen -> console mode fullscreen fix it maintains the hidden cursor when exiting from in-game fullscreen -> console mode but it shows the cursor again after originally hidden when going from console mode fullscreen -> in-game fullscreen. Both entering the game and leaving the game from fullscreen console mode states should keep the cursor hidden during the transitions. |
|
@volcoice Thanks for testing. Your pad reports "Switch Pro Controller", which the engine already treated as Nintendo before this PR. So I am not sure this PR is what changed things for you. Could you tell me which build you ran when the layout became right? The app version, the commit shown in the diagnostics or the engine channel you used would be enough. Did the in-game layout look wrong for this pad before, with the same build? I will hold this PR until I know. If it was not needed I will close it. The cursor you describe when going from console mode to the game is a separate problem. I will look at it in its own PR. |
|
@v0lumehi I was previously trying it on both v.0.7.5 and when we tested the previous fullscreen fixes on v0.8.0 RC1 and it was exhibiting issues on both. When I just recently launched v0.7.5 and it downloaded new build commits, I launched the game and it seemed to be working fine again. I then tried testing it on v0.8.0 RC1 and it was also working fine there as well. The commit version in diagnostics shows: "52c5212 Merge pull request #353 from Dino0005/fix/engine-signing (branch main), 0 behind origin/main as of the last fetch, 2026-10-31 20:00". |
|
@volcoice Thanks. You were on main at 52c5212 without this PR, and the layout is right there. So the old rule already matched your pad and something else on main fixed it, most likely the engine that could not be built before the signing fix. I am closing this PR. If a pad with another category name shows the wrong layout, please open an issue with its name from the diagnostics. |
Fix or feature
What and why
With a Nintendo controller, the launcher treats the pad as Nintendo (A selects, B goes back) but the game follows the Xbox layout (B selects, A goes back). The launcher passes no layout to the game. The engine decides it from
GCController.productCategoryand counted only "Switch Pro Controller" or a name with "Joy-Con" as Nintendo. Any other category was mapped by position.The patch makes the engine use the launcher's rule (
ConsoleGlyphs.Family): case-insensitive, ignoring "-" and spaces, matching "nintendo", "switch" or "joycon". Xbox, DualSense and generic pads are unchanged. This is part 2 of #346. It does not close it.The reporter's exact pad and its
productCategoryare unconfirmed, so I do not know that this fixes their pad. @volcoice, could you run a build with this and tell me if the layout is right now? The same change is open upstream as seedds/nxnative#835.Checked
make -C dm/host/tests GAME=010015100B514000 run(t_pad_applenew cases failed before the change and pass after) andpython3 tools/engine.py check. The pre-push hook runs the launcher and Qt tests.Screenshots
None, no visible change.
Scope
dm/,scripts/,docs/,ref/) is added to the repository: a change there is a patch inpatches/(a commit inengine/, thentools/engine.py export, andtools/engine.py checkpasses), with itsUpstream-Statusforwarded seedds/nxnative#..., orpendinguntil that PR is open