Bedtime. /Input Handling

Input Handling

Button and encoder input

int32_t os_controls_encoder_get_delta(void)

Get encoder rotation delta since last call

Returns — Signed delta (positive = clockwise, negative = counter-clockwise)

int32_t diff = os_controls_encoder_get_delta();
if (diff != 0) {
    model->value += diff;
}