logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GetCursor - Get the active cursor.

Availability

       This function is available since SDL 3.2.0.

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().

Name

       SDL_GetCursor - Get the active cursor.

Return Value

       Returns the active cursor or NULL if there is no mouse.

See Also

SDL_SetCursor(3)

Simple Directmedia Layer                           SDL 3.2.20                                   SDL_GetCursor(3)

Synopsis

#include<SDL3/SDL_mouse.h>SDL_Cursor*SDL_GetCursor(void);

Thread Safety

       This function should only be called on the main thread.

See Also