Skip to content

add support for CursorEntered and CursorLeft events in Windows OS#147

Closed
Amarantheum wants to merge 1 commit into
RustAudio:masterfrom
Amarantheum:master
Closed

add support for CursorEntered and CursorLeft events in Windows OS#147
Amarantheum wants to merge 1 commit into
RustAudio:masterfrom
Amarantheum:master

Conversation

@Amarantheum

Copy link
Copy Markdown

A simple change that uses TrackMouseEvent to determine if the cursor has left the window. Uses WM_MOUSEMOVE to determine if the mouse has entered back into the window. Adds additional state mouse_in_window to the WindowState struct to determine if the cursor is over the window. This is initialized to true since TrackMouseEvent will immediately register a WM_MOUSELEAVE message if the cursor is not in the window.

Mostly adding this since it's useful for me so it may be useful for others.

@prokopyl

Copy link
Copy Markdown
Member

Closing this, since it turns out it has already been implemented/merged. 🙂

@prokopyl prokopyl closed this Jun 15, 2026
@prokopyl prokopyl removed this from the v0.1.X - Internal refactorings milestone Jun 15, 2026
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.

2 participants