SDL_SetCursor

Name

SDL_SetCursor -- Set the currently active mouse cursor.

Synopsis

#include "SDL.h"

void SDL_SetCursor(SDL_Cursor *cursor);

Description

Sets the currently active cursor to the specified one. If the cursor is currently visible, the change will be immediately represented on the display. SDL_SetCursor(NULL) can be used to force cursor redraw, if this is desired for any reason.

Return Value

None

Example

int main(int argc, char** argc) {
     SDL_ShowCursor(SDL_DISABLE);
     ...
}

creates a blank cursor

See Also

SDL_GetCursor, SDL_CreateCursor, SDL_ShowCursor

SDL_SetCursor (last edited 2008-04-17 08:18:38 by localhost)