[SDL] SDL_SetRelativeMouseMode Starting Position

Alundra 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...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20140901/df0be4c5/attachment-0001.htm>


More information about the SDL mailing list