SDL_GetCursor - Man Page
Get the active cursor.
Header File
Defined in SDL3/SDL_mouse.h
Synopsis
#include "SDL3/SDL.h" SDL_Cursor * SDL_GetCursor(void);
Description
This function returns a pointer to the current cursor which is owned by the library. It is not necessary to free the cursor with
SDL_DestroyCursor ().
Return Value
( SDL_Cursor
*) Returns the active cursor or NULL if there is no mouse.
Thread Safety
This function should only be called on the main thread.
Availability
This function is available since SDL 3.2.0.
See Also
·(3), SDL_SetCursor(3)
Referenced By
SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS