emoon / rust_minifb

Cross platfrom window and framebuffer crate for Rust
MIT License
980 stars 92 forks source link

Mouse clicks aren't processed while the pointer is outside the window #345

Open tech6hutch opened 4 months ago

tech6hutch commented 4 months ago

When clicking in the window, dragging out, and releasing the button, window.get_mouse_down(MouseButton::Left) continues to return true until the mouse comes back in. Is this intended behavior / a limitation of the Windows API?

Related: #280, where the state wasn't updated even after coming back to the window.

emoon commented 4 months ago

I see. Which OS are you using?

tech6hutch commented 4 months ago

Windows 10. I can check Windows 11 sometime today too.