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:
co-authored by
Peter Feerick
parent
e4b5460e5c
commit
c59f579bbe
+4
-1
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user