[SDL] SDL_SetRelativeMouseMode Starting Position
segura.mikael at orange.fr
Mon Sep 1 11:51:56 PDT 2014
I'm working on a RTS but DOTA style has the same problem.
I render the cursor using a sprite 32x32 and I want the mouse start at the center and can't be outside the window.
All works good except the start on the center of the window, the only way is to warp the cursor in the center each frame and compute the mouse position ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL