SDL_GetPenDeviceType - Man Page
Get the device type of the given pen.
Synopsis
#include <SDL3/SDL_pen.h> SDL_PenDeviceType SDL_GetPenDeviceType(SDL_PenID instance_id);
Description
Many platforms do not supply this information, so an app must always be prepared to get an SDL_PEN_DEVICE_TYPE_UNKNOWN result.
Function Parameters
- instance_id
the pen instance ID.
Return Value
Returns the device type of the given pen, or SDL_PEN_DEVICE_TYPE_INVALID on failure; call SDL_GetError() for more information.
Thread Safety
It is safe to call this function from any thread.
Availability
This function is available since SDL 3.4.0.
Info
SDL 3.3.2 Simple Directmedia Layer SDL3 FUNCTIONS