6IncrementDecrementButtons::updateImplementation() {
17 longPressState = Initial;
21 longPressState = AfterReset;
23 }
else if (
incrState == Button::Falling) {
26 longPressState = AfterReset;
30 return IncrementShort;
32 }
else if (
decrState == Button::Falling) {
35 longPressState = AfterReset;
39 return DecrementShort;
43 }
else if (longPressState != AfterReset &&
incrState == Button::Pressed) {
46 if (longPressState == LongPress) {
52 longPressState = LongPress;
53 longPressRepeat =
now;
56 }
else if (longPressState != AfterReset &&
decrState == Button::Pressed) {
59 if (longPressState == LongPress) {
65 longPressState = LongPress;
66 longPressRepeat =
now;