View Single Post
Old 05-22-2016   #10
AlamGBC
WOO! GO ME! YAHOO!
Administrator
 
AlamGBC's Avatar
Default Why SDL mouse sucks

OK, the Issue with the mouse, is we do an old Quake/Unreal trick, once game "noticed" the had mouse moved, we wrap it back to the middle of screen.

But at high DPI, the mouse can escape the game window (at both windowed and full screen), so yea, no more mouse input data after that point

We need someone to use SDL2's Relative Mouse Mode so make the OS handle the keeping the mouse locked to the game screen and also send us delta of mouse input.

Anyone (that is not using a Linux/GNU X11) help us code to fix this up?

Why not Linux/GNU X11 system? well, if the game crashed while the mouse is in this mode... well, that mouse is gone until the user restart the desktop....
__________________
"remember, hacking SRB2 is a good thing, cracking it's save games is not" - Alam and Logan Arias

3DS FC: 0473-7778-0919
AlamGBC is offline