Create GT911 Touchscreen component (#4027)

Co-authored-by: clydebarrow <2366188+clydebarrow@users.noreply.github.com>
This commit is contained in:
Jesse Hillsandclydebarrow authored and GitHub committed 2023-11-28 09:44:09 +13:00
1 parent a15a812466
commit f63f722afb
11 files changed
+314

No files matched your search

@@ -18,6 +18,11 @@ void Touchscreen::set_display(display::Display *display) {
}
}
void Touchscreen::send_release_() {
for (auto *listener : this->touch_listeners_)
listener->release();
}
void Touchscreen::send_touch_(TouchPoint tp) {
ESP_LOGV(TAG, "Touch (x=%d, y=%d)", tp.x, tp.y);
this->touch_trigger_.trigger(tp);