Interrupt / systemshock

Shockolate - A minimalist and cross platform System Shock source port.
GNU General Public License v3.0
807 stars 65 forks source link

Better handle switching from/to window #167

Closed donnierussellii closed 6 years ago

donnierussellii commented 6 years ago

Mouse events are handled only if cursor is in play area and window has input focus. If not, show desktop mouse cursor. Captured mouse cursor stays out of black border regions. Commits finished.

Interrupt commented 6 years ago

This hiding of the window frame acts a bit weird on OSX, not sure this is a path we should go down either. Now it lets me resize the window, even when the mouse is supposed to be grabbed.

Also, I'd vote for keeping the window frame unless we added windowed borderless as a Preferences option that could be enabled.

donnierussellii commented 6 years ago

Okay, I reverted back to turning off drag resize instead of getting rid of the frame itself.

donnierussellii commented 6 years ago

I learned/realized that warping mouse in window creates a mouse motion event. When mouselooking we just want to warp the mouse to the center of the play area. Going through the mouse motion event caused feedback in some situations that made mouselook go crazy.