View Single Post
Old 05-28-2016   #11
~Confusion~
 
~Confusion~'s Avatar
Default

Wow, I have the exact same problem with the mouse in SDL2 version (srb2win.exe).

Quote:
Originally Posted by AlamGBC View Post
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....
I'd gladly try to help if I ever figure out how to compile the SDL2 exe.
__________________
Quote:
*Chaos*Aries*ASD* renamed to hms
<hms> im the real one
<hms> nice try aries
<~Despicable Me> Lol 2 hms
Despicable Me renamed to hms
Back then we all had windows xp... Lucky we were =S
~Confusion~ is offline