Repository navigation
Conversation
Use AppKit cursor hiding only for the active game content and restore it on focus loss. Add a windowless native regression test for keyboard dispatch, focus and content bounds; controller hardware and cursor rendering remain interactive checks.
4 tasks done
dmuiX
marked this pull request as ready for review
October 28, 2026 23:22
Closed
2 of 3 tasks
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
|
Thank you! Landed in c1df4dd (you are credited as co-author). Changes on the way in: rebased onto current main, and the hide now also covers raw HID gamepads (#669) through one shared |
This was referenced Nov 1, 2026
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]>
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
Hide the Mac pointer during keyboard/controller gameplay using AppKit's native
setHiddenUntilMouseMoves:rather than a timer, cursor hide/unhide counter or new setting.The cursor currently stays over the picture while playing. The change is confined to
dm/host/front_mac.m; title-bar input, mouse/touch and other apps are excluded. Unknown keyboard keys, releases and neutral/small stick values do not initiate hiding. Moving the mouse restores visibility through AppKit.Independent of #573: this branch targets current
main(beea17c) directly and contains none of the Pikachu profile/BLE changes. A local app containing both changes was packaged separately; its save checksum was unchanged. No additional app replacement is part of this PR.Checked
test_mac_cursor.pycompiles the realpush/keyboard/cursor implementation with Foundation and windowless AppKit doubles. Upstream fails the recognized-key assertion; the candidate passes. Cases: headless/no window, non-key window, inactive app, pointer outside content, valid gameplay presses, releases, unknown keys, WASD and suspended input. It does not create or activate a UI window..github/workflows/tests.ymlwere executed locally on the cursor-only branch: host/CPU graphics tests, ASan/UBSan/TSan, all 83 tool-test files, Mac-host builds for Wonder/Hades/Digimon plus all gfx target builds and iOS source compile, and the synthetic unsigned iOS app build. All completed successfully. Local environment: M1 Pro, macOS 27.2, Xcode 27.1, Python 3.15.2 (GitHub uses 3.14).regress.py impact origin/main..HEAD: 3 manifest-covered games affected, Hades broad, 94 profiles unknown. The Mac frontend is shared, so this is not a per-game behavior claim. Game frame/screenshot regressions are not an effective test for native cursor visibility, especially in headless mode; no full cross-game runtime regression is claimed.Docs
docs/playing.md.docs/reference/services.md;docs_symptoms.pyregenerated the index.