serenity
serenity copied to clipboard
Ports: Implement SDL2 mouse warping
This PR implements the mouse warping functionality of SDL2. It also removes the mouse hacks originally needed for the SRB2 port.
Thanks to this, multiple ports depending on SDL2 now correctly lock the mouse inside the window and it improves the experience significantly.
As of now, you need to pass the kernel argument 'vmmouse=off' so that Serenity uses the relative mouse mode instead of the absolute one.
See the individual commits for more details.
https://github.com/SerenityOS/serenity/assets/38794835/e8fde936-fa60-440a-a979-fced7d9da1ea