Archived

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

GroZZleR

Mouse Cursor

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