[SDL] Cursor disappears when moved
Ilya Olevsky
info at valengames.com
Sun Oct 15 11:08:21 PDT 2006
> Is there any trick I can use to programmatically hide the mouse cursor other
> than using SDL_ShowCursor(SDL_DISABLE)?
Try this: when you get the SDL_ACTIVEEVENT event, check if you're in
fullscreen mode and gained focus, and if so call SDL_ShowCursor
(SDL_DISABLE). One way to check if the app gained focus is this:
if(SDL_GetAppState() & SDL_APPINPUTFOCUS)
...
More information about the SDL
mailing list