diff -r 45df4552bdfe include/SDL_mouse.h --- a/include/SDL_mouse.h Wed Apr 10 22:18:10 2013 -0400 +++ b/include/SDL_mouse.h Thu Apr 11 20:03:28 2013 -0300 @@ -175,6 +175,11 @@ extern DECLSPEC SDL_Cursor *SDLCALL SDL_GetCursor(void); /** + * \brief Return the default cursor. + */ +extern DECLSPEC SDL_Cursor *SDLCALL SDL_GetDefaultCursor(void); + +/** * \brief Frees a cursor created with SDL_CreateCursor(). * * \sa SDL_CreateCursor() diff -r 45df4552bdfe src/events/SDL_mouse.c --- a/src/events/SDL_mouse.c Wed Apr 10 22:18:10 2013 -0400 +++ b/src/events/SDL_mouse.c Thu Apr 11 20:03:28 2013 -0300 @@ -618,6 +618,17 @@ return mouse->cur_cursor; } +SDL_Cursor * +SDL_GetDefaultCursor(void) +{ + SDL_Mouse *mouse = SDL_GetMouse(); + + if (!mouse) { + return NULL; + } + return mouse->def_cursor; +} + void SDL_FreeCursor(SDL_Cursor * cursor) {