47 lines
805 B
C++
47 lines
805 B
C++
#pragma once
|
|
#include <atomic>
|
|
|
|
#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 {
|
|
NONE = 0,
|
|
LEFT_CLICK = 1,
|
|
RIGHT_CLICK = 2,
|
|
};
|
|
|
|
struct CLICK_EVENT {
|
|
short int x;
|
|
short int y;
|
|
CLICK_EVENTS event;
|
|
};
|
|
|
|
enum class ApplicationEventState {
|
|
NONE = 0,
|
|
CREATED = 1,
|
|
CLOSED = 2,
|
|
};
|
|
|
|
struct APPLICATION_EVENT {
|
|
short int id;
|
|
ApplicationEventState state;
|
|
char title[64];
|
|
};
|
|
|
|
struct DISPLAY_STATE {
|
|
std::atomic<bool> update_display;
|
|
};
|
|
|
|
struct CALIBRATION_IDLE {
|
|
uint32_t max_idle_iterations = 0;
|
|
uint32_t idle_count_last = 0;
|
|
}; |