Go to the source code of this file.
◆ SDL_MOUSE_TOUCHID
◆ SDL_TOUCH_MOUSEID
◆ SDL_FingerID
◆ SDL_TouchID
CategoryTouch
SDL touch management.
Definition at line 41 of file SDL_touch.h.
◆ SDL_TouchDeviceType
Enumerator |
---|
SDL_TOUCH_DEVICE_INVALID | |
SDL_TOUCH_DEVICE_DIRECT | |
SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE | |
SDL_TOUCH_DEVICE_INDIRECT_RELATIVE | |
Definition at line 44 of file SDL_touch.h.
45{
@ SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE
@ SDL_TOUCH_DEVICE_DIRECT
@ SDL_TOUCH_DEVICE_INDIRECT_RELATIVE
@ SDL_TOUCH_DEVICE_INVALID
◆ SDL_GetTouchDeviceName()
const char * SDL_GetTouchDeviceName |
( |
SDL_TouchID |
touchID | ) |
|
|
extern |
Get the touch device name as reported from the driver.
- Parameters
-
touchID | the touch device instance ID. |
- Returns
- touch device name, or NULL on failure; call SDL_GetError() for more information.
- Since
- This function is available since SDL 3.0.0.
◆ SDL_GetTouchDevices()
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.
- Parameters
-
count | a pointer filled in with the number of devices returned, may be NULL. |
- 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.
- Since
- This function is available since SDL 3.0.0.
◆ SDL_GetTouchDeviceType()
Get the type of the given touch device.
- Parameters
-
touchID | the ID of a touch device. |
- Returns
- touch device type.
- Since
- This function is available since SDL 3.0.0.
◆ SDL_GetTouchFingers()
Get a list of active fingers for a given touch device.
- Parameters
-
touchID | the ID of a touch device. |
count | a pointer filled in with the number of fingers returned, can be NULL. |
- 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.
- Since
- This function is available since SDL 3.0.0.