Add paint application.

This commit is contained in:
JF
2020-08-21 11:55:59 +02:00
parent 7d3af600bd
commit a664dec07f
10 changed files with 117 additions and 20 deletions
+5 -2
View File
@@ -174,8 +174,11 @@ void DisplayApp::Refresh() {
if(touchMode == TouchModes::Polling) {
auto info = touchPanel.GetTouchInfo();
if(info.action == 2) // 2 = contact
lvgl.SetNewTapEvent(info.x, info.y);
if(info.action == 2) {// 2 = contact
if(!currentScreen->OnTouchEvent(info.x, info.y)) {
lvgl.SetNewTapEvent(info.x, info.y);
}
}
}
}