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

Hide mouse after n seconds #11

Open
knappador opened this issue Mar 23, 2019 · 0 comments
Open

Hide mouse after n seconds #11

knappador opened this issue Mar 23, 2019 · 0 comments
Labels
good first issue Good for newcomers

Comments

@knappador
Copy link
Contributor

knappador commented Mar 23, 2019

https://docs.rs/winit/0.19.0/winit/struct.Window.html#method.hide_cursor

Mesmerize.rs should hide the pointer whenever it hasn't moved for "a while". Use the std::time::Duration class to record the last move in the frame loop and if that time is exceeded, hide the cursor. Fun errata may proceed to reveal itself.

@knappador knappador added the good first issue Good for newcomers label Mar 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant