Color UI single touch menu navigation (#20053)

This commit is contained in:
Victor Oliveira
2020-11-07 06:00:29 -03:00
committed by GitHub
parent 53cc8a0d6e
commit 2fdeceda58
4 changed files with 16 additions and 3 deletions

View File

@@ -206,7 +206,10 @@ void Touch::touch(touch_control_t *control) {
case MENU_SCREEN: ui.goto_screen((screenFunc_t)control->data); break;
case BACK: ui.goto_previous_screen(); break;
case CLICK: ui.lcd_clicked = true; break;
case CLICK:
TERN_(SINGLE_TOUCH_NAVIGATION, ui.encoderPosition = control->data);
ui.lcd_clicked = true;
break;
#if HAS_RESUME_CONTINUE
case RESUME_CONTINUE: extern bool wait_for_user; wait_for_user = false; break;
#endif