viewizard / astromenace

Hardcore 3D space scroll-shooter with spaceship upgrade possibilities.
https://viewizard.com
Other
221 stars 30 forks source link

Mouse can leave fullscreen window #1

Closed psypherium closed 6 years ago

psypherium commented 6 years ago

When playing on a dual-monitor setup, the mouse cursor can leave the fullscreen window and interact with windows on the other monitor. I don't know if this will be easy to fix, it's not a big problem anyway. Just thought I would let you know. I hope you have a good day.

Expected behavior: mouse should only leave window when it isn't attached to ship control. When there is a cursor on the screen, it can leave the window, that's fine. When there is no cursor on the screen and my mouse is controlling the ship, the input should be locked within the window.

Arch AMDGPU-all-open Gnome3

viewizard commented 6 years ago

I see the issue. I grab mouse only for windowed mode. Will be fixed.

viewizard commented 6 years ago

Committed bd18d9fe0458faf95175392d18e6d92fde20cc59 with fix. Could you, please, check it?

psypherium commented 6 years ago

Perfect, no more problem! Nice work! :+1: