From ee1cfdf9872a4959ebdb5309441f847af6ebd253 Mon Sep 17 00:00:00 2001 From: gagarinlg Date: Thu, 20 Jan 2022 19:34:07 +0100 Subject: [PATCH] fix some touch issues update min screen on input changes --- radio/src/thirdparty/libopenui/src/mainwindow.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/radio/src/thirdparty/libopenui/src/mainwindow.cpp b/radio/src/thirdparty/libopenui/src/mainwindow.cpp index f8e211c15..3647a403f 100644 --- a/radio/src/thirdparty/libopenui/src/mainwindow.cpp +++ b/radio/src/thirdparty/libopenui/src/mainwindow.cpp @@ -77,11 +77,15 @@ void MainWindow::setTouchEnabled(bool enable) } #endif +#if defined(HARDWARE_TOUCH) +bool getTouchOccured(); +#endif void MainWindow::checkEvents() { #if defined(HARDWARE_TOUCH) - if (touchPanelEventOccured()) { +// if (touchPanelEventOccured()) { + if (getTouchOccured()) { short lastDeltaX = touchState.lastDeltaX; short lastDeltaY = touchState.lastDeltaY;; TouchState newTouchState = touchPanelRead(); @@ -230,7 +234,7 @@ void MainWindow::run(bool trash) // KLK: removed for now. This is now // called from lvgl event processing when // necessary - // checkEvents(); + checkEvents(); if (trash) { emptyTrash();