Repository navigation
Conversation
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, 0 keeps it) without movement over the game view and shows 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. Documented in docs/env_switches.tsv and docs/reference/frame-rate.md, with the symptom index updated.
4 of 5 tasks
v0lumehi
added a commit
to LNPANDY/NX2Apple
that referenced
this pull request
Oct 30, 2026
patches: 0032 is forwarded as seedds/nxnative#755
nobz226
pushed a commit
to nobz226/NX2Apple
that referenced
this pull request
Oct 31, 2026
2 tasks done
seedds
added a commit
that referenced
this pull request
Nov 1, 2026
…ves (#584, fixes #675) A key the game takes, a controller button or a stick past 15% (GameController and raw HID pads) asks AppKit to hide the pointer, setHiddenUntilMouseMoves, while the game window is key, the app is active and the pointer is over the content view. Moving the mouse shows it again; losing focus shows it too. No timer and no setting: this supersedes #755 and #839. Co-authored-by: Daniel Ullrich <[email protected]>
Owner
|
Thanks for this. Closing as superseded by #584, landed in c1df4dd: game input (keys, controller buttons, sticks past 15%, raw HID pads too) asks AppKit to hide the pointer over the picture with |
2 of 4 tasks
Know-It-All-Brother
pushed a commit
to Know-It-All-Brother/nxnative
that referenced
this pull request
Nov 9, 2026
…ves (seedds#584, fixes seedds#675) A key the game takes, a controller button or a stick past 15% (GameController and raw HID pads) asks AppKit to hide the pointer, setHiddenUntilMouseMoves, while the game window is key, the app is active and the pointer is over the content view. Moving the mouse shows it again; losing focus shows it too. No timer and no setting: this supersedes seedds#755 and seedds#839. Co-authored-by: Daniel Ullrich <[email protected]>
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
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 Mac game's pointer stays on the picture. macOS hides it only for an app that asks, and a game window does not. In the NX2Apple launcher's Console Mode a player uses a controller, so the pointer sits over the game until the mouse is moved to a screen corner. This happens in a window and in fullscreen.
Change, in
dm/host/front_mac.mfront_runonly: the pointer hides afterDM_CURSOR_HIDEseconds without movement over the game view, and shows again on the next movement, click or scroll. A local event monitor records the last mouse activity and a 0.25 s timer decides. The pointer is shown whenever the window is not key, the app is not active or the pointer is outside the game view, so the title bar and other windows keep theirs.The switch is
DM_CURSOR_HIDE=<seconds>. The default is 3.0keeps the pointer visible as before. It is aplayerswitch indocs/env_switches.tsv. The reference entry is The pointer stays on a Mac game, and the symptom index is updated.The code does not depend on the fullscreen work in #665 or the screen choice in #670. It sits after the
DM_FULLSCREENrequest infront_runand applies to a window and to fullscreen alike.Found with the NX2Apple launcher (LNPANDY/NX2Apple#272). NX2Apple carries the same change as a patch until this merges.
Checked
make -C dm/host GAME=010015100B514000 dmhostbuilds,make -C dm/host/tests GAME=010015100B514000 runpasses, anddm/tools/tests/test_docs.py,test_env_switches.pyandtest_launcher_settings.pypass.test_docs.pycaught the missing symptom index line, whichpython3 dm/tools/docs_symptoms.pythen added.dm/tools/lint_python.pywas not run, no Python changed.scripts/regress.py: not run. The change is in the window setup, which a headless run never takes (noDM_WINDOW).Docs
docs/reference/frame-rate.mdentry, andpython3 dm/tools/docs_symptoms.pywas run (the symptom index)