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 |
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:
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 |
This is an event timestamp in milliseconds since application start
GR_EVENT_RELEASE_IN |
GR_EVENT_RELEASE_OUT |
This parameter is dependent on the availability of z- co-ordinate information
This parameter is used to track multi-touch presses as they come in
This is padding and should be 0