| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
SDL3.Sys.Bindgen.Pen.FunPtr
Synopsis
Documentation
sDL_GetPenDeviceType :: FunPtr (SDL_PenID -> IO SDL_PenDeviceType) Source #
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.
instance_id- the pen instance ID.
- 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 atSDL3/SDL_pen.h 189:47
Since: 3.4.0