Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Mouse Cursor

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

Hey all, I''ve got the mouse up and running without a problem, clicks and double clicks, the whole nine yards. The problem I''m facing now is, how can I remove the ugly black white mouse cursor and import my own custom cursor? What are the size limits, etc. Thanks.

Share this post

Link to post
Share on other sites
You set a new cursor with:
void SDL_SetCursor(SDL_Cursor *cursor);

You can create a new cursor with:
SDL_Cursor *SDL_CreateCursor(Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y);

look here: [url=http://sdldoc.csn.ul.ie/sdlcreatecursor.php]Explanation[/url]

And free your cursor with:
void SDL_FreeCursor(SDL_Cursor *cursor);


Share this post

Link to post
Share on other sites

  • 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!