Fixed missing PRESS_REPEAT event

pull/33/head
EeeeBin 3 years ago committed by GitHub
parent 0610f1533a
commit 26ab449cb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -106,6 +106,7 @@ void button_handler(struct Button* handle)
handle->event = (uint8_t)PRESS_DOWN; handle->event = (uint8_t)PRESS_DOWN;
EVENT_CB(PRESS_DOWN); EVENT_CB(PRESS_DOWN);
handle->repeat++; handle->repeat++;
handle->event = (uint8_t)PRESS_REPEAT;
EVENT_CB(PRESS_REPEAT); // repeat hit EVENT_CB(PRESS_REPEAT); // repeat hit
handle->ticks = 0; handle->ticks = 0;
handle->state = 3; handle->state = 3;

Loading…
Cancel
Save