SDL Wiki
[ front page | index | search | recent changes | git repo | offline html ]

SDL_GetPenDeviceType

Get the device type of the given pen.

Header File

Defined in <SDL3/SDL_pen.h>

Syntax

SDL_PenDeviceType SDL_GetPenDeviceType(SDL_PenID instance_id);

Function Parameters

SDL_PenID instance_id the pen instance ID.

Return Value

(SDL_PenDeviceType) Returns the device type of the given pen, or SDL_PEN_DEVICE_TYPE_INVALID on failure; call SDL_GetError() for more information.

Remarks

Many platforms do not supply this information, so an app must always be prepared to get an SDL_PEN_DEVICE_TYPE_UNKNOWN result.

Thread Safety

It is safe to call this function from any thread.

Version

This function is available since SDL 3.4.0.


CategoryAPI, CategoryAPIFunction, CategoryPen


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.