From f1c9454355cafb90f235569a0d5753cd8a210628 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Fri, 27 Dec 2024 17:46:16 -0600 Subject: Moved port cvars out of display update --- src/port/hooks/impl/EventSystem.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/port/hooks/impl/EventSystem.h') 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 +#include +#include 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 -- cgit v1.2.3