Define the generic API of a touch device.
More...
Define the generic API of a touch device.
- Warning
- This feature is experimental!
This API is experimental and in an early state - expect changes!
- Author
- Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr
◆ touch_dev_height()
Get the height of the touch device.
- Parameters
-
[in] | dev | Pointer to the touch device |
- Returns
- Height in points
◆ touch_dev_touches()
Get the current touches on the touch device.
If touches
is NULL, this function only returns the number of touches.
Touch position coordinates use the top left corner as origin.
- Parameters
-
[in] | dev | Pointer to the touch device |
[out] | touches | The array of touches |
[in] | len | The touches array len |
- Returns
- number of touch positions, 0 means no touch
◆ touch_dev_width()
Get the width of the touch device.
- Parameters
-
[in] | dev | Pointer to the touch device |
- Returns
- Width in points