diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-12-27 17:46:16 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2024-12-27 17:46:16 -0600 |
| commit | f1c9454355cafb90f235569a0d5753cd8a210628 (patch) | |
| tree | c3f3e3cd5d20059edd0ccb2201c16f5f7d11ab38 /src/port/hooks/impl/EventSystem.h | |
| parent | 4b0eacaef7b60d42f03f9c3299751e57be2cbad4 (diff) | |
Moved port cvars out of display update
Diffstat (limited to 'src/port/hooks/impl/EventSystem.h')
| -rw-r--r-- | src/port/hooks/impl/EventSystem.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/port/hooks/impl/EventSystem.h b/src/port/hooks/impl/EventSystem.h index 3e6cf29b..1489c182 100644 --- a/src/port/hooks/impl/EventSystem.h +++ b/src/port/hooks/impl/EventSystem.h @@ -1,13 +1,14 @@ #pragma once #include <stdint.h> +#include <stdbool.h> +#include <stddef.h> typedef uint16_t EventID; typedef enum EventType { EVENT_TYPE_PRE, - EVENT_TYPE_NORMAL, - EVENT_TYPE_POST, + EVENT_TYPE_POST } EventType; typedef enum EventPriority { @@ -22,9 +23,9 @@ typedef struct IEvent { typedef void (*EventCallback)(IEvent*); -// ID Type -// 00000000000000 00 -#define EVENT_ID(id, type) ((id << 2) | type) +// ID Type +// 000000000000000 0 +#define EVENT_ID(id, type) ((id << 1) | type) #ifdef __cplusplus #include <array> |
