sdl3-bindgen-sys
Safe HaskellNone
LanguageGHC2021

SDL3.Sys.Bindgen.Touch.Unsafe

Synopsis

Documentation

sDL_GetTouchDevices Source #

Arguments

:: Ptr CInt
count
a pointer filled in with the number of devices returned, may be NULL.
-> 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 at SDL3/SDL_touch.h 140:43

Since: 3.2.0

sDL_GetTouchDeviceName Source #

Arguments

:: SDL_TouchID
touchID
the touch device instance ID.
-> 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 at SDL3/SDL_touch.h 151:42

Since: 3.2.0

sDL_GetTouchDeviceType Source #

Arguments

:: SDL_TouchID
touchID
the ID of a touch device.
-> IO SDL_TouchDeviceType 

Get the type of the given touch device.

Returns
touch device type.
C declaration
SDL_GetTouchDeviceType, defined at SDL3/SDL_touch.h 161:49

Since: 3.2.0

sDL_GetTouchFingers Source #

Arguments

:: SDL_TouchID
touchID
the ID of a touch device.
-> Ptr CInt
count
a pointer filled in with the number of fingers returned, can be NULL.
-> IO (Ptr (Ptr SDL_Finger)) 

Get a list of active fingers for a given touch device.

Returns
a NULL terminated array of SDL_Finger pointers 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 at SDL3/SDL_touch.h 176:43

Since: 3.2.0