Decrease click time window to avoid spurious double press detections while cycling windows quickly, build power toggle by default

This commit is contained in:
code8buster
2022-12-15 11:08:37 -05:00
parent 06be74ae7c
commit f2229e6977
2 changed files with 2 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ class ButtonThread : public concurrency::OSThread
pinMode(BUTTON_PIN, INPUT_PULLUP_SENSE);
#endif
userButton.attachClick(userButtonPressed);
userButton.setClickTicks(300);
userButton.attachDuringLongPress(userButtonPressedLong);
userButton.attachDoubleClick(userButtonDoublePressed);
userButton.attachMultiClick(userButtonMultiPressed);