| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
SDL3.Sys.Bindgen.Touch.Safe
Synopsis
- sDL_GetTouchDevices :: Ptr CInt -> IO (Ptr SDL_TouchID)
- sDL_GetTouchDeviceName :: SDL_TouchID -> IO (PtrConst CChar)
- sDL_GetTouchDeviceType :: SDL_TouchID -> IO SDL_TouchDeviceType
- sDL_GetTouchFingers :: SDL_TouchID -> Ptr CInt -> IO (Ptr (Ptr SDL_Finger))
Documentation
Arguments
| :: Ptr CInt |
|
| -> IO (Ptr SDL_TouchID) |
Get a list of registered touch devices.
On some platforms SDL first sees the touch device if it was actually used. Therefore the returned list might be empty, although devices are available. After using all devices at least once the number will be correct.
- Returns
- a 0 terminated array of touch device IDs or NULL on failure; call SDL_GetError() for more information. This should be freed with SDL_free() when it is no longer needed.
- C declaration
SDL_GetTouchDevices, defined atSDL3/SDL_touch.h 140:43
Since: 3.2.0
sDL_GetTouchDeviceName Source #
Arguments
| :: SDL_TouchID |
|
| -> IO (PtrConst CChar) |
Get the touch device name as reported from the driver.
- Returns
- touch device name, or NULL on failure; call SDL_GetError() for more information.
- C declaration
SDL_GetTouchDeviceName, defined atSDL3/SDL_touch.h 151:42
Since: 3.2.0
sDL_GetTouchDeviceType Source #
Arguments
| :: SDL_TouchID |
|
| -> IO SDL_TouchDeviceType |
Get the type of the given touch device.
- Returns
- touch device type.
- C declaration
SDL_GetTouchDeviceType, defined atSDL3/SDL_touch.h 161:49
Since: 3.2.0
Arguments
| :: SDL_TouchID |
|
| -> Ptr CInt |
|
| -> IO (Ptr (Ptr SDL_Finger)) |
Get a list of active fingers for a given touch device.
- Returns
- a NULL terminated array of
SDL_Fingerpointers or NULL on failure; call SDL_GetError() for more information. This is a single allocation that should be freed with SDL_free() when it is no longer needed. - C declaration
SDL_GetTouchFingers, defined atSDL3/SDL_touch.h 176:43
Since: 3.2.0