Create base touchscreen component and refactor ektf2232 (#3083)

Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
This commit is contained in:
Jesse Hills
2022-01-26 16:26:46 +13:00
committed by GitHub
parent 3a62455948
commit ef832becf1
16 changed files with 224 additions and 159 deletions
+1 -4
View File
@@ -111,10 +111,7 @@ void EKTF2232Touchscreen::loop() {
break;
}
ESP_LOGV(TAG, "Touch %d: (x=%d, y=%d)", i, tp.x, tp.y);
this->touch_trigger_->trigger(tp);
for (auto *listener : this->touch_listeners_)
listener->touch(tp);
this->defer([this, tp]() { this->send_touch_(tp); });
}
}