Jump to content
  • Advertisement
Sign in to follow this  
Sykth

Problems with SDL cursor

This topic is 4216 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement
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.)

Share this post


Link to post
Share on other sites
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 ?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!