Skip to main content
gamedev.net
🔒 Locked

Problems with SDL cursor

Started by Sykth Mar 7, 2007 at 4:47 PM 1 replies 800+ views
Original Post
Sykth
Sykth
hi there, probably a really silly question to ask, but when i run my game even though I have SDL_ShowCursor set to 1 or SDL_enable, the mouse doesn't appear at full screen. Im using SDL 1.2.8 as its the only dev pack avail on the update for dev-C++. Is there a simpler way to rectify this instead of creating a cursor sprite?
Simian Man
Simian Man
This is a known problem with SDL in hardware mode. You have 2 options:

  • Run your program in software mode instead of hardware. That is, pass SDL_SWSURFACE as a flag to SDL_SetVideoMode. This is what I do, and the perfromance has not been a problem at all.

  • Render and update your own cursor. It may not be as responsive as a built in cursor, but gives you a lot of options (eg. colors, animations etc.)

Sykth
Sykth
Uint32 theFlags = SDL_SWSURFACE | SDL_DOUBLEBUF | SDL_FULLSCREEN;

THis is how my flag sits, at the moment it still hasn't caused the cursor to appear.

ANy ideas ?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.