Skip to content

Follow the launcher's Nintendo pad rule in game (part 2 of #346) - #368

Closed
v0lumehi wants to merge 1 commit into
fix/ci-cachesfrom
fix/ingame-controller-layout
Closed

v0lumehi wants to merge 1 commit into
fix/ci-cachesfrom
fix/ingame-controller-layout

Conversation

@v0lumehi

@v0lumehi v0lumehi commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

Fix or feature

  • Fix
  • 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.productCategory and 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 productCategory are 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

  • Tests: make -C dm/host/tests GAME=010015100B514000 run (t_pad_apple new cases failed before the change and pass after) and python3 tools/engine.py check. The pre-push hook runs the launcher and Qt tests.
  • Visual QA: none, no launcher change.
  • Run on a device or Mac: no. I had no Nintendo pad to try.

Screenshots

None, no visible change.

Scope

  • No engine file (dm/, scripts/, docs/, ref/) is added to the repository: a change there is a patch in patches/ (a commit in engine/, then tools/engine.py export, and tools/engine.py check passes), with its Upstream-Status
  • A fix to the engine or a game profile also goes to seedds/nxnative as a PR in parallel: this PR's patch says forwarded seedds/nxnative#..., or pending until that PR is open
  • A change to a launcher view has before and after screenshots above
  • No keys, game files or data extracted from a game in the change or the attachments

@github-actions github-actions Bot added the patch-queue Changes the patch queue or the upstream pin label Nov 1, 2026
@v0lumehi
v0lumehi changed the base branch from main to fix/ci-caches November 1, 2026 00:16
@v0lumehi
v0lumehi added this pull request to stack #370 November 1, 2026 00:16
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.
@volcoice

volcoice commented Nov 1, 2026

Copy link
Copy Markdown

@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.

@v0lumehi

v0lumehi commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator Author

@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.

@volcoice

volcoice commented Nov 1, 2026

Copy link
Copy Markdown

@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".

@v0lumehi

v0lumehi commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator Author

@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.

@v0lumehi v0lumehi closed this Nov 1, 2026
@v0lumehi
v0lumehi removed this pull request from stack #370 November 1, 2026 01:10
@v0lumehi
v0lumehi deleted the fix/ingame-controller-layout branch November 20, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch-queue Changes the patch queue or the upstream pin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants