Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Amarantheum
Copy link

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.

@BillyDM BillyDM mentioned this pull request Mar 18, 2024
27 tasks
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