started implementing backlight tracking (unfinished)
horus touch driver internally tracks touch state and returns the state on read to make in independed of the mainwindow touchState
This commit is contained in:
+1
-1
@@ -375,7 +375,7 @@ void guiMain(event_t evt)
|
||||
#endif
|
||||
#if defined(HARDWARE_TOUCH)
|
||||
MainWindow* mainWin = MainWindow::instance();
|
||||
mainWin->setTouchEnabled(!isFunctionActive(FUNCTION_DISABLE_TOUCH));
|
||||
mainWin->setTouchEnabled(!isFunctionActive(FUNCTION_DISABLE_TOUCH) && isBacklightEnabled());
|
||||
#endif
|
||||
MainWindow::instance()->run();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user