6 namespace touchscreen {
8 static const char *
const TAG =
"touchscreen";
22 ESP_LOGV(TAG,
"Touch (x=%d, y=%d)", tp.
x, tp.
y);
DisplayRotation get_rotation() const
Trigger< TouchPoint > touch_trigger_
virtual int get_width()=0
Get the width of the image in pixels with rotation applied.
void send_touch_(TouchPoint tp)
Call this function to send touch points to the on_touch listener and the binary_sensors.
std::vector< TouchListener * > touch_listeners_
void swap(optional< T > &x, optional< T > &y)
display::Display * display_
Implementation of SPI Controller mode.
void set_display(display::Display *display)
virtual int get_height()=0
Get the height of the image in pixels with rotation applied.