From 9bef331dc8a2fe7302134ff9cd67a375e325f201 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 14 Mar 2024 08:49:02 -0700 Subject: [PATCH] Note that SDL_UserEvent and SDL_Event type are intentionally Uint32 --- include/SDL3/SDL_events.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/SDL3/SDL_events.h b/include/SDL3/SDL_events.h index 2f1a7d5afc..0b434b8c73 100644 --- a/include/SDL3/SDL_events.h +++ b/include/SDL3/SDL_events.h @@ -697,7 +697,7 @@ typedef struct SDL_QuitEvent */ typedef struct SDL_UserEvent { - Uint32 type; /**< ::SDL_EVENT_USER through ::SDL_EVENT_LAST-1 */ + Uint32 type; /**< ::SDL_EVENT_USER through ::SDL_EVENT_LAST-1, Uint32 because these are not in the SDL_EventType enumeration */ Uint32 reserved; Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */ SDL_WindowID windowID; /**< The associated window if any */ @@ -712,7 +712,7 @@ typedef struct SDL_UserEvent */ typedef union SDL_Event { - Uint32 type; /**< Event type, shared with all events */ + Uint32 type; /**< Event type, shared with all events, Uint32 to cover user events which are not in the SDL_EventType enumeration */ SDL_CommonEvent common; /**< Common event data */ SDL_DisplayEvent display; /**< Display event data */ SDL_WindowEvent window; /**< Window event data */