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 */