Sign in to follow this  

Problems with SDL cursor

This topic is 3934 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
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

This topic is 3934 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this