docs: Improved SDL_CommonEvent documentation.

This commit is contained in:
Ryan C. Gordon
2026-06-24 13:15:53 -04:00
parent 135a9457f3
commit 179e66f1fe

View File

@@ -296,7 +296,13 @@ typedef enum SDL_EventType
} SDL_EventType;
/**
* Fields shared by every event
* Fields shared by every event (event.common.*)
*
* All the individual structs that comprise the SDL_Event union start with
* these same fields, so you can access them from any struct directly.
*
* Event types that don't have further data in a specific struct will still
* have valid CommonEvent data, accessible via the event.common field.
*
* \since This struct is available since SDL 3.2.0.
*/