Skip to content

Keep the pointer hidden when console mode starts a game - #374

Merged
v0lumehi merged 3 commits into
mainfrom
fix/cursor-console-to-game-fullscreen
Nov 1, 2026
Merged

v0lumehi merged 3 commits into
mainfrom
fix/cursor-console-to-game-fullscreen

Conversation

@v0lumehi

@v0lumehi v0lumehi commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

Fix or feature

  • Fix
  • Feature

What and why

@volcoice reported on #368 (v0.8.0 RC1): in console mode fullscreen the pointer is hidden. When the game goes fullscreen, it shows again for a moment. Leaving the game back to console mode is fine.

Cause:

  • The console hides the pointer with NSCursor.hide() in ConsolePointer.swift. That hide belongs to the launcher process.
  • On Play the launcher window leaves fullscreen and then the game opens. The launcher stops being the active app. ConsolePointer.look() sees over == false and calls unhide. The pointer is visible from then on.
  • The game is a new process. In front_mac.m (patch 0032) it starts with hidden = 0 and hides only after DM_CURSOR_HIDE idle seconds, counted from its start. So the pointer stays visible through the whole fullscreen transition.
  • Leaving the game does not show it because the launcher still has its own hidden state and the game process ends.

Change:

Part of #335. This touches ConsolePointer.swift by one accessor. #359 (fix/console-pointer-idle) changes the idle time in the same file. The edits are in different lines, so I expect no conflict. The new test is in ConsoleLiveTests.swift, which #359 does not touch.

Checked

  • Tests: new test testAGameStartsWithThePointerHiddenWhenTheConsoleHadItHidden failed first (nil is not equal to "1") and passes now. cd frontend && swift build && swift test passes (652 tests, 0 failures). python3 tools/engine.py check passes. test_env_switches.py for the new row passes on the nxnative branch.
  • Visual QA: not applicable.
  • Run on a device or Mac: not checked. I cannot watch the real transition on screen. @volcoice, please confirm with an RC build of this PR. One thing I am unsure of: macOS may still show the pointer for a moment between the launcher losing focus and the game window becoming active, because hide is per app.

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#839
  • A change to a launcher view has before and after screenshots above (no launcher view changes)
  • No keys, game files or data extracted from a game in the change or the attachments

@github-actions github-actions Bot added launcher The NX2Apple launcher app patch-queue Changes the patch queue or the upstream pin labels Nov 1, 2026
@v0lumehi
v0lumehi changed the base branch from main to fix/engine-bump-bbc3b73 November 1, 2026 01:12
@v0lumehi
v0lumehi added this pull request to stack #375 November 1, 2026 01:12
@v0lumehi
v0lumehi force-pushed the fix/cursor-console-to-game-fullscreen branch from e1f56a1 to 44826ab Compare November 1, 2026 01:13
Base automatically changed from fix/engine-bump-bbc3b73 to main November 1, 2026 01:35
The game is a new process, so its pointer showed again from the moment the launcher lost focus until its own idle wait ended. The console now sets DM_CURSOR_HIDDEN=1 when its pointer is hidden at Play, and the game starts hidden (patch 0054).
@v0lumehi
v0lumehi force-pushed the fix/cursor-console-to-game-fullscreen branch from 44826ab to 2982c6e Compare November 1, 2026 01:35
@v0lumehi
v0lumehi merged commit 95c0a3a into main Nov 1, 2026
13 checks passed
@v0lumehi
v0lumehi deleted the fix/cursor-console-to-game-fullscreen branch November 1, 2026 02:04
@volcoice

volcoice commented Nov 1, 2026

Copy link
Copy Markdown

@v0lumehi I tried v0.8.0 RC3 which was built from this commit. Sadly, in my testing, starting a game from console mode fullscreen still shows the mouse cursor that was previously hidden when transitioning from NX2Apple console mode -> fullscreen game.

The mouse idle time/cursor disappearance has been sped up and feels good now, I think a way to improve it paired with the future always-console mode toggle on launch is to immediately keep the cursor hidden if NX2Apple launches with that toggle enabled instead of the current wait time it is now when prompted if the user wants the console mode on controller recognition.

It might be as you said though where due to the hide being per app it's showing the mouse cursor again during that transition due to how MacOS handles it.

@v0lumehi

v0lumehi commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator Author

@volcoice Thanks for testing rc3. The fix is not enough then. I opened #380 for the cursor and put your idea for the always-console toggle in it. We will look at it there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

launcher The NX2Apple launcher app 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