Get the device type of the given pen.
Defined in <SDL3/SDL_pen.h>
SDL_PenDeviceType SDL_GetPenDeviceType(SDL_PenID instance_id);
SDL_PenID | instance_id | the pen instance ID. |
(SDL_PenDeviceType) Returns the device type of the given pen, or SDL_PEN_DEVICE_TYPE_INVALID on failure; call SDL_GetError() for more information.
Many platforms do not supply this information, so an app must always be prepared to get an SDL_PEN_DEVICE_TYPE_UNKNOWN result.
It is safe to call this function from any thread.
This function is available since SDL 3.4.0.