randomPoison / gunship-rs

An experimental game engine written in Rust.
MIT License
27 stars 3 forks source link

Capture And Hide Mouse Cursor #57

Closed randomPoison closed 8 years ago

randomPoison commented 8 years ago

We need some functionality for hiding/capturing the mouse cursor because it's pretty annoying when you can't click within the game because your mouse is no longer over the window and moving the mouse deselects whatever you wanted to click in the game. This also requires functionality for making the cursor visible again so that it's possible to deselect the game. This should happen automatically when the game looses focus (if the OS doesn't handle that already).

randomPoison commented 8 years ago

This got implemented in my last hasty merge. It's not perfect but it does the job and can be improved in future issues.