bool touch_register_area(TOUCH_AREA_STRUCT *area)
Receive an event when the pen moves inside the region (pen is down)
Receive an event when the pen goes down inside the region.
void(* TOUCH_CALLBACK)(void *touchArea, TOUCH_ACTION triggeredAction)
Receive an event when the pen goes up inside the region.
uint16_t y1
Top Left Y-Coordinate of Area.
uint16_t y
The Y-Coordinate of the point.
uint8_t flags
For internal use, don't change, don't initialize.
uint16_t x
The X-Coordinate of the point.
uint16_t x1
Top Left X-Coordinate of Area.
void touch_unregister_area(TOUCH_AREA_STRUCT *area)
bool touch_add_raw_event(uint16_t x, uint16_t y, TOUCH_STATE state)
uint16_t y2
Bottom Right Y-Coordinate of Area.
The display is currently not touched.
The display is currently touched at some point.
TOUCH_CALLBACK callback
Callback which is executed when an event occurred in this Area.
void touch_set_value_convert_mode(bool use_calibration)
uint16_t x2
Bottom Right X-Coordinate of Area.
Receive an event when the pen enters the region (pen was down before)
POINT_STRUCT touch_get_last_point()
TOUCH_ACTION hookedActions
Actions to listen to.
bool touch_have_empty(unsigned char num)
Do not receive any events.
void touch_set_calibration_values(int xs, int dx, int ys, int dy)
Receive an event when the pen leaves the region (pen was inside region before)