#pragma once #include typedef enum { INPUT_NONE = 0, INPUT_CW, // knob turned clockwise: next camera INPUT_CCW, // counter-clockwise: previous camera INPUT_CLICK, // pause / resume INPUT_DOUBLE, // toggle overlay INPUT_LONG, // long press: reserved (currently toggles overlay too) INPUT_KEY, // extra key on the CC1101 board } input_event_t; void input_init(void); // Non-blocking; returns INPUT_NONE when nothing is queued. input_event_t input_poll(void); // Blocks up to timeout_ms. input_event_t input_wait(int timeout_ms);