PocketPutr/Desktop_Test/GLOBALS.h

33 lines
461 B
C++

#pragma once
#include <atomic>
#define MAX_SCREEN_WIDTH 480
#define MAX_SCREEN_HEIGHT 320
enum CLICK_EVENTS {
NONE = 0,
LEFT_CLICK = 1,
RIGHT_CLICK = 2,
};
struct CLICK_EVENT {
int x;
int y;
CLICK_EVENTS event;
};
enum class ApplicationEventState {
NONE = 0,
CREATED = 1,
CLOSED = 2,
};
struct APPLICATION_EVENT {
int id;
ApplicationEventState state;
char title[64];
};
struct DISPLAY_STATE {
std::atomic<bool> update_display;
};