#pragma once #include #define MAX_SCREEN_WIDTH 480 #define MAX_SCREEN_HEIGHT 320 #define COL_WHITE 0xffff #define COL_BLACK 0x0000 #define COL_GREY 0xbdf7 // Standard color #define COL_LIGHT_GREY 0x8410 #define COL_DARK_GREY 0x9cf3 #define COL_DARK_BLUE 0x0014 #define COL_RED 0xf800 #define COL_TEAL 0x0410 enum CLICK_EVENTS : uint8_t { NONE = 0, LEFT_CLICK = 1, RIGHT_CLICK = 2, ENTER = 3, KEYBOARD = 4, }; struct CLICK_EVENT { short x; short y; char character; CLICK_EVENTS event; }; enum class ApplicationEventState : uint8_t { NONE = 0, CREATED = 1, CLOSED = 2, }; struct APPLICATION_EVENT { char title[64]; short id; ApplicationEventState state; }; struct DISPLAY_STATE { std::atomic update_display; }; struct CALIBRATION_IDLE { uint32_t max_idle_iterations = 0; uint32_t idle_count_last = 0; };