mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-09-19 09:36:38 +00:00
With UI_HAS_JOYSTICK, user_btn (Enter) was left with pulldownup=false and multiclick=true (the plain-PRG-button defaults), instead of matching the other wired joystick contacts. Two effects on a wired Enter button: - No internal pull-up on the Enter pin, unlike the direction/back contacts. - multiclick=true buffers a click for ~280ms waiting for a possible double/ triple click, but UITask.cpp's UI_HAS_JOYSTICK loop only ever checks user_btn for CLICK/LONG_PRESS — so a quick double-tap collapses into a DOUBLE_CLICK event that's silently dropped, making Enter feel laggy and unreliable. wio-tracker-l1 (factory joystick) already builds user_btn with pulldownup/multiclick matching its other contacts; apply the same pattern here, conditional on UI_HAS_JOYSTICK so the stock external-pull-up PRG button path (no joystick) is unchanged. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>