This commit is contained in:
Raphael Coeffic
2022-06-13 22:43:45 +02:00
committed by Raphael Coeffic
parent 4fc2a2ee5d
commit e75ec459f1
3 changed files with 1 additions and 17 deletions
@@ -154,11 +154,6 @@ void FullScreenDialog::runForever()
{
running = true;
// MainWindow* mainWin = MainWindow::instance();
// #if defined(HARDWARE_TOUCH)
// mainWin->setTouchEnabled(true);
// #endif
// reset input devices to avoid
// RELEASED/CLICKED to be called in a loop
lv_indev_reset(nullptr, nullptr);
@@ -187,11 +182,6 @@ void FullScreenDialog::runForever()
void FullScreenDialog::runForeverNoPwrCheck()
{
running = true;
// MainWindow* mainWin = MainWindow::instance();
// #if defined(HARDWARE_TOUCH)
// mainWin->setTouchEnabled(true);
// #endif
while (running) {
resetBacklightTimeout();
run_ui_manually();
-6
View File
@@ -373,12 +373,6 @@ void guiMain(event_t evt)
}
#endif
// TODO: use lv_indev_enable(touchDriver, true / false) instead
// #if defined(HARDWARE_TOUCH)
// MainWindow* mainWin = MainWindow::instance();
// mainWin->setTouchEnabled(!isFunctionActive(FUNCTION_DISABLE_TOUCH) &&
// isBacklightEnabled());
// #endif
LvglWrapper::instance()->run();
MainWindow::instance()->run();