feat(ui): UI_ENTER_DOUBLE_BACK - double-click Enter goes back, off by default

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
MarekZegare4
2026-10-19 12:58:04 +02:00
co-authored by Claude Sonnet 5.5
parent 5bee64ef3b
commit e2c50062b6
3 changed files with 26 additions and 3 deletions
+5 -1
View File
@@ -11,7 +11,11 @@ GAT56230SMeshKitBoard board;
#ifdef DISPLAY_CLASS
DISPLAY_CLASS display;
MomentaryButton user_btn(PIN_USER_BTN, 1000, true, false, false);
#ifdef UI_ENTER_DOUBLE_BACK
MomentaryButton user_btn(PIN_USER_BTN, 1000, true, false, true); // multi-click: double Enter = Back
#else
MomentaryButton user_btn(PIN_USER_BTN, 1000, true, false, false);
#endif
MomentaryButton joystick_left(JOYSTICK_LEFT, 1000, true, false, false);
MomentaryButton joystick_right(JOYSTICK_RIGHT, 1000, true, false, false);
MomentaryButton back_btn(PIN_BACK_BTN, 1000, true, false, true);