Archived

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

Mouse Cursor

This topic is 5597 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);


schiggl

Share this post


Link to post
Share on other sites