diff --git a/include/kernel/events.h b/include/kernel/events.h new file mode 100644 index 0000000..9342160 --- /dev/null +++ b/include/kernel/events.h @@ -0,0 +1,23 @@ +#ifndef EVENTS_H +#define EVENTS_H + +#include + +struct event { + uint16_t type; + uint16_t code; + int16_t x; + int16_t y; +}; + +#define EVENT_CLOSE (1<<0) +#define EVENT_MOUSE_MOVE (1<<1) +#define EVENT_BUTTON_UP (1<<2) +#define EVENT_BUTTON_DOWN (1<<3) +#define EVENT_KEY_UP (1<<4) +#define EVENT_KEY_DOWN (1<<5) +#define EVENT_RESIZE (1<<6) +#define EVENT_REVEAL (1<<7) +#define EVENT_HIDE (1<<8) + +#endif