mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-26 23:08:11 +00:00
The joystick directions and Back were never begin()'d, so on the e-ink build they never claimed a GPIOTE channel — edges landing during a blocking panel refresh were lost and the IRQ-capture work didn't reach them. begin() them. Even with edges captured, rapid taps of one direction replayed into a single check() and collapsed into a double/triple-click event the navigation handler ignores, and the loop only ever dispatched one key per render. So: - MomentaryButton: for multiclick=false buttons emit one CLICK per completed release (one per check() call) instead of collapsing — each tap stays a discrete key. multiclick=true buttons (double/triple) are unchanged. - UITask: add a key FIFO; drain each direction fully into it, apply the whole queued burst, then redraw once. N taps captured during a refresh become N navigation steps at the cost of a single refresh. Also fixes losing a key when two buttons fire in the same loop iteration. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>