Handle buttons & encoders in View, not Model
This commit is contained in:
@ -12,12 +12,12 @@ extern "C" {
|
||||
#define BUTTON_MIN_PRESS_TIME 50 // ms
|
||||
#define ENC_MAX_PHASE 50 // ms
|
||||
|
||||
typedef enum { UMK_BTN_RELEASED, UMK_ENC_CW, UMK_ENC_CCW } UIMessageKind;
|
||||
typedef enum { UMK_BTN_RELEASED, UMK_ENC_CW, UMK_ENC_CCW } ButtonMessageKind;
|
||||
|
||||
typedef struct {
|
||||
UIMessageKind kind;
|
||||
ButtonMessageKind kind;
|
||||
int number;
|
||||
} UIMessage;
|
||||
} ButtonMessage;
|
||||
|
||||
void ui_thread_entry(ULONG _);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user