glutin_window icon indicating copy to clipboard operation
glutin_window copied to clipboard

Cursor events are not created if no buttton are pressed

Open tormol opened this issue 10 years ago • 2 comments

tormol avatar Oct 04 '15 21:10 tormol

Is this issue possibly the reason why set_mouse_capture on a glutin window doesn't seem to be capturing mouse movement? I changed the window back-end in the Piston cube example to glutin, and it fails to capture the mouse events for the first person camera. (Ubuntu Gnome 15)

chrisrharris avatar Oct 14 '15 17:10 chrisrharris

I just noticed e.cursor_args only works on glutin if a button is being held down when it exits the window (Works fine in SDL2). Looking at the commit where it's implemented, it looks like the code is correct. It makes me think that maybe E::MouseMoved((x, y)) isn't triggered when the mouse leaves the window unless a button is pressed.

zmoshansky avatar Apr 13 '16 03:04 zmoshansky