From 842c08080333157f9a7143f8d5a8deb7a027482c Mon Sep 17 00:00:00 2001 From: sbosse Date: Thu, 17 Oct 2024 23:43:30 +0200 Subject: [PATCH] Thu 17 Oct 23:42:52 CEST 2024 --- include/kernel/events.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 include/kernel/events.h 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