Skip to content

add mouseInside window tracking - #188

Merged
treeform merged 1 commit into
masterfrom
agent/mouse-inside
Sep 1, 2026
Merged

add mouseInside window tracking#188
treeform merged 1 commit into
masterfrom
agent/mouse-inside

Conversation

@treeform

@treeform treeform commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add window.mouseInside on macOS, Windows, Linux, and Emscripten so apps can tell when the cursor has left the window.
  • Add examples/mouse_inside.nim: red while the mouse is over the window, black when it is not.
  • Compile that example in Github Actions on every OS, plus Emscripten on Ubuntu.

Test plan

  • Confirm CI compiles examples/mouse_inside.nim on ubuntu, macos, and windows.
  • Confirm CI compiles it with -d:emscripten on Ubuntu.
  • Run nim c -r examples/mouse_inside.nim locally: window is red with the mouse inside, black after the mouse leaves, and it does not stay red after leave.

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@treeform
treeform merged commit 3d3d724 into master Sep 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant