Declares position structure that keep information of a single touch.
Depending on a widget type each structure field keeps the following information:
| Structure Field | Slider | Matrix Buttons | CSD Touchpad | CSX Touchpad | Liquid Level |
|---|---|---|---|---|---|
| x | X-axis position | Active Column | X-axis position | X-axis position | Liquid level |
| y | Reserved | Active Row | Y-axis position | Y-axis position | Reserved |
| z | Reserved | Reserved | Reserved | MSB = Age of touch; LSB = Z-value represents a touch strength (summ of sensor diff counts divided by 16 that form 3x3 matrix with a local maximum in the center). It is not used by Middleware, however can be re-used by users to define a touch shape or a finger size. | Reserved |
| id | Reserved | Logical number of button | Reserved | MSB = Debounce; LSB = touch ID | Reserved |
Data Fields | |
| uint16_t | x |
| X position. | |
| uint16_t | y |
| Y position. | |
| uint16_t | z |
| Z value. | |
| uint16_t | id |
| ID of touch. | |