From cef20686d6e55ed34503dafa3353cee3bdc74418 Mon Sep 17 00:00:00 2001 From: superturbocat2001 Date: Sun, 24 Jan 2021 19:42:41 +0000 Subject: [PATCH] - Added enumeration of kolibri events git-svn-id: svn://kolibrios.org@8544 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/sdk/sources/newlib/libc/include/kos32sys.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/contrib/sdk/sources/newlib/libc/include/kos32sys.h b/contrib/sdk/sources/newlib/libc/include/kos32sys.h index 482bdadf62..9565821779 100644 --- a/contrib/sdk/sources/newlib/libc/include/kos32sys.h +++ b/contrib/sdk/sources/newlib/libc/include/kos32sys.h @@ -332,6 +332,18 @@ static inline uint32_t LoadCursor(void *path, uint32_t flags) __attribute__ ((a static inline uint32_t SetCursor(uint32_t cursor) __attribute__ ((alias ("set_cursor"))); static inline int DestroyCursor(uint32_t cursor) __attribute__ ((alias ("destroy_cursor"))); +enum KOLIBRI_GUI_EVENTS { + KOLIBRI_EVENT_NONE = 0, /* Event queue is empty */ + KOLIBRI_EVENT_REDRAW = 1, /* Window and window elements should be redrawn */ + KOLIBRI_EVENT_KEY = 2, /* A key on the keyboard was pressed */ + KOLIBRI_EVENT_BUTTON = 3, /* A button was clicked with the mouse */ + KOLIBRI_EVENT_DESKTOP = 5, /* Desktop redraw finished */ + KOLIBRI_EVENT_MOUSE = 6, /* Mouse activity (movement, button press) was detected */ + KOLIBRI_EVENT_IPC = 7, /* Interprocess communication notify */ + KOLIBRI_EVENT_NETWORK = 8, /* Network event */ + KOLIBRI_EVENT_DEBUG = 9, /* Debug subsystem event */ + KOLIBRI_EVENT_IRQBEGIN = 16 /* 16..31 IRQ0..IRQ15 interrupt =IRQBEGIN+IRQn */ +}; static inline uint32_t wait_for_event(uint32_t time)