sdl3-bindgen-sys
Safe HaskellNone
LanguageGHC2021

SDL3.Sys.Bindgen.Pen.Unsafe

Synopsis

Documentation

sDL_GetPenDeviceType Source #

Arguments

:: SDL_PenID
instance_id
the pen instance ID.
-> IO SDL_PenDeviceType 

Get the device type of the given pen.

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

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.
C declaration
SDL_GetPenDeviceType, defined at SDL3/SDL_pen.h 189:47

Since: 3.4.0