[SDL] Cursor

Matthew Johnson levifiction at gmail.com
Fri Sep 7 21:53:26 PDT 2007


I don't exactly know how to put this into a C/C++ version but can't
you simply grab the pointer to the default cursor before setting the
new cursor?

SDL_Cursor* OriginalCursor = NULL;

OriginalCursor = SDL_GetCursor();

SDL_SetCursor(Newcursor);

SDL_SetCursor(OriginalCursor);

And so on however you need to do it.

On 9/7/07, Patricia Curtis <patricia.curtis at gmail.com> wrote:
> Hi
>     Why is my cursor smaller within my SDL Window and it is outside of the
> window? how can i make it the standard windows Cursor? i have tried making a
> custom Cursor with set Cursor, which works fine, but again there appears to
> be no Function to return back to the standard, it appears that if i make a
> custom cursor, i have to stick with it and not give my users chance to swap
> back.
>
> T
>
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>


More information about the SDL mailing list