Add special function to disable the touch screen (#942)

* added a new special function to disable the touch screen

* Bump libopenui

* Don't try to disable touch if no hardware touch

* Disable processing of SF if no touch hardware

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
Malte Langermann
2021-10-25 23:20:57 +11:00
committed by GitHub
co-authored by Peter Feerick
parent e4b5460e5c
commit c59f579bbe
24 changed files with 57 additions and 22 deletions
+4 -1
View File
@@ -373,7 +373,10 @@ void guiMain(event_t evt)
maxLuaDuration = t0;
}
#endif
#if defined(HARDWARE_TOUCH)
MainWindow* mainWin = MainWindow::instance();
mainWin->setTouchEnabled(!isFunctionActive(FUNCTION_DISABLE_TOUCH));
#endif
MainWindow::instance()->run();
bool screenshotRequested = (mainRequestFlags & (1u << REQUEST_SCREENSHOT));