SDL_GetCursor(3)

SDL_GetCursor3

Get the active cursor.

Usage

#include "SDL3/SDL.h"

SDL_Cursor * SDL_GetCursor(void);

Header file

Defined in SDL3/SDL_mouse.h

Overview

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.

Releases

12 releases since Debian 3.0 (Woody); the text changed 2 times.

  1. 3.0–5.0
  2. 6.0–12
  3. 13

Availability

This function is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.