Originally, after unlocking mouse, the mouse gets teleported back, even when it is not in the window.
After #25 this still happens but only if the y-position is below the top border of the window. The fps camera also moves to the side because the last mouse position doesn't update
Reproduce: press L key, move mouse off window, press L key again. If mouse is above top border, nothing happens, when mouse moves down, it gets teleported onto the screen and the camera jerks.
it would make sense to put isMouseInWindow in the Window class, however handleInput is passed an SFML Window, so I have now put the function as a static funtion of the custom Window class
Originally, after unlocking mouse, the mouse gets teleported back, even when it is not in the window.
After #25 this still happens but only if the y-position is below the top border of the window. The fps camera also moves to the side because the last mouse position doesn't update
Reproduce: press L key, move mouse off window, press L key again. If mouse is above top border, nothing happens, when mouse moves down, it gets teleported onto the screen and the camera jerks.
This is a fix for this.