mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 19:02:00 +00:00
Add files via upload
This commit is contained in:
@@ -1291,9 +1291,10 @@ void UITask::loop() {
|
|||||||
_lock_seq_ms = 0;
|
_lock_seq_ms = 0;
|
||||||
}
|
}
|
||||||
enqueueKey(checkDisplayOn(KEY_ENTER));
|
enqueueKey(checkDisplayOn(KEY_ENTER));
|
||||||
|
}
|
||||||
};
|
};
|
||||||
int ev = user_btn.check();
|
int ev = user_btn.check();
|
||||||
#ifdef UI_ENTER_DOUBLE_BACK
|
#ifdef UI_ENTER_DOUBLE_BACK
|
||||||
// For a joystick without a reachable Back button: a double click on Enter goes
|
// For a joystick without a reachable Back button: a double click on Enter goes
|
||||||
// back. Multi-click delays a single Enter by the click window. Where text is
|
// back. Multi-click delays a single Enter by the click window. Where text is
|
||||||
// typed (on-screen keyboard, PIN pad) or the lock sequence is counting, a
|
// typed (on-screen keyboard, PIN pad) or the lock sequence is counting, a
|
||||||
@@ -1307,10 +1308,9 @@ void UITask::loop() {
|
|||||||
}
|
}
|
||||||
ev = BUTTON_EVENT_NONE;
|
ev = BUTTON_EVENT_NONE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (ev == BUTTON_EVENT_CLICK) {
|
if (ev == BUTTON_EVENT_CLICK) {
|
||||||
enterClick();
|
enterClick();
|
||||||
}
|
|
||||||
} else if (ev == BUTTON_EVENT_LONG_PRESS) {
|
} else if (ev == BUTTON_EVENT_LONG_PRESS) {
|
||||||
enqueueKey(handleLongPress(KEY_ENTER)); // REVISIT: could be mapped to different key code
|
enqueueKey(handleLongPress(KEY_ENTER)); // REVISIT: could be mapped to different key code
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user