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:
gagarinlg
2021-11-16 11:21:04 +10:00
committed by Peter Feerick
parent 52013da098
commit ced9df9510
6 changed files with 50 additions and 35 deletions
+1 -1
View File
@@ -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();