Scroll to navigation

SDL_GetPenType(3) SDL3 FUNCTIONS SDL_GetPenType(3)

NAME

SDL_GetPenType - Retrieves the pen type for a given :: SDL_PenID .

SYNOPSIS

#include "SDL3/SDL.h"
SDL_PenSubtype SDL_GetPenType(SDL_PenID instance_id);

FUNCTION PARAMETERS

The pen to query.

RETURN VALUE

Returns The corresponding pen type (cf. :: SDL_PenSubtype ) or 0 on error. Note that the pen type does not dictate whether the pen tip is :: SDL_PEN_TIP_INK
or :: SDL_PEN_TIP_ERASER ; to determine whether a pen is being used for drawing or in eraser mode, check either the pen tip on :: SDL_EVENT_PEN_DOWN , or the flag :: SDL_PEN_ERASER_MASK
in the pen state.

AVAILABILITY

This function is available since SDL 3.0.0

SDL 3.1.0 SDL