gre.touch
If a mouse/touchscreen presses and then releases on the same control then a touch event will be generated. This is useful for activating button style elements. If the release is found to intersect a different control then a touch event is not generated.
note
This event is synthetically generated by the framework based on incoming
gre.press and gre.release events. Event redirectors should generally
not include this event in their list of redirection events.
Data
uint32_t button
uint32_t timestamp
int16_t subtype
int16_t x
int16_t y
int16_t z
int16_t id
int16_t spare
Where:
button
| GR_EVENT_BTN_LEFT - 0x0001: if this is a touchscreen then the button is always left |
| GR_EVENT_BTN_MIDDLE - 0x0002 |
| GR_EVENT_BTN_RIGHT - 0x0004 |
timestamp
This is an event timestamp in milliseconds since application start
subtype
| GR_EVENT_RELEASE_IN |
| GR_EVENT_RELEASE_OUT |
z
This parameter is dependent on the availability of z- co-ordinate
information
id
This parameter is used to track multi-touch presses as they come in
spare
This is padding and should be 0