fix some touch issues
update min screen on input changes
This commit is contained in:
committed by
Raphael Coeffic
parent
e575d122a1
commit
ee1cfdf987
+6
-2
@@ -77,11 +77,15 @@ void MainWindow::setTouchEnabled(bool enable)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(HARDWARE_TOUCH)
|
||||||
|
bool getTouchOccured();
|
||||||
|
#endif
|
||||||
void MainWindow::checkEvents()
|
void MainWindow::checkEvents()
|
||||||
{
|
{
|
||||||
#if defined(HARDWARE_TOUCH)
|
#if defined(HARDWARE_TOUCH)
|
||||||
|
|
||||||
if (touchPanelEventOccured()) {
|
// if (touchPanelEventOccured()) {
|
||||||
|
if (getTouchOccured()) {
|
||||||
short lastDeltaX = touchState.lastDeltaX;
|
short lastDeltaX = touchState.lastDeltaX;
|
||||||
short lastDeltaY = touchState.lastDeltaY;;
|
short lastDeltaY = touchState.lastDeltaY;;
|
||||||
TouchState newTouchState = touchPanelRead();
|
TouchState newTouchState = touchPanelRead();
|
||||||
@@ -230,7 +234,7 @@ void MainWindow::run(bool trash)
|
|||||||
// KLK: removed for now. This is now
|
// KLK: removed for now. This is now
|
||||||
// called from lvgl event processing when
|
// called from lvgl event processing when
|
||||||
// necessary
|
// necessary
|
||||||
// checkEvents();
|
checkEvents();
|
||||||
|
|
||||||
if (trash) {
|
if (trash) {
|
||||||
emptyTrash();
|
emptyTrash();
|
||||||
|
|||||||
Reference in New Issue
Block a user