Skip to content

Console mode starts games fullscreen, and the pointer hides when idle - #280

Merged
v0lumehi merged 3 commits into
mainfrom
v0lumehi/console-mode-fullscreen
Oct 30, 2026
Merged

v0lumehi merged 3 commits into
mainfrom
v0lumehi/console-mode-fullscreen

Conversation

@v0lumehi

@v0lumehi v0lumehi commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Fix or feature

  • Fix
  • Feature

What and why

Fixes #272.

The game opened as a window when Play was pressed in console mode. The launcher is in its own full screen Space there. Opening the game makes macOS leave that Space, and the game's request for fullscreen can be refused during the change. Patch 0030 makes the host wait for the Space change, but a game built before it always comes up as a window.

Play in console mode now takes the launcher window out of full screen first and then opens the game. This is the same path as Play from the desktop view, which already works. When the game quits, the window goes back to full screen. If the launcher is not the active app then, it waits until it is.

The pointer never hid over a game, in a window or in fullscreen. The host never asked macOS to hide it. Patch 0032 hides it after DM_CURSOR_HIDE seconds without movement over the game (3 by default, 0 keeps it) and shows it again on the next movement, click or scroll. It is shown whenever the window is not key or the pointer is outside the game view.

The pointer part is in the game host, so a game has to be rebuilt to get it.

Checked

  • Tests: cd frontend && swift test passes (502 tests, 15 skipped). New tests cover the window leaving and returning to full screen, and the driver waiting for that before it opens the game. python3 scripts/patches.py check and dm/tools/tests/test_docs.py pass. front_mac.m compiles with clang -fsyntax-only.
  • Visual QA: not done.
  • Run on a device or Mac: not done. I did not start a game or a new app build. Neither the full screen change nor the pointer hiding has been seen working.

Screenshots

None. The change has no new view.

Scope

  • No vendored file (dm/, scripts/, docs/, ref/, AGENTS.md) is edited directly: a change there is a patch in patches/ (scripts/patches.py export, and patches.py check passes), with its Upstream-Status
  • A fix to the engine or a game profile is also (or first) a PR at seedds/nxnative: patch 0032 is Upstream-Status: pending. The same change still has to be sent to seedds/nxnative.
  • No keys, game files or data extracted from a game in the change or the attachments

A game opened from an app in its own full screen Space can come up as a window, and a game that was built before the host waited for the Space change always does. Play now takes the launcher window out of full screen, opens the game, and puts the window back after the game has quit.

Issue: #272
The Mac host never hid the pointer, so it stayed on the picture of a game in a window and in fullscreen. It now hides after DM_CURSOR_HIDE seconds (3 by default) without movement over the game view and shows again on the next movement, click or scroll.
@v0lumehi v0lumehi added bug Something isn't working launcher The NX2Apple launcher app mac Mac labels Oct 30, 2026
@github-actions github-actions Bot added documentation Improvements or additions to documentation patch-queue Changes the patch queue or the upstream pin labels Oct 30, 2026
@v0lumehi
v0lumehi merged commit 2aed539 into main Oct 30, 2026
11 checks passed
@v0lumehi
v0lumehi deleted the v0lumehi/console-mode-fullscreen branch November 1, 2026 02:04
lucaszhongsj pushed a commit to lucaszhongsj/nxnative that referenced this pull request Nov 19, 2026
Upstream-Status: fork-only (declined seedds#755, seedds#839)
Reason: Hide the mouse cursor over a running Mac game after idle timeout and when launched with the cursor hidden
Issue: LNPANDY/NX2Apple#280
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation launcher The NX2Apple launcher app mac Mac patch-queue Changes the patch queue or the upstream pin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Launching game from Console Mode results in windowed game instead of fullscreen, cursor stays active on screen with and without Console Mode

1 participant