SDL 3.0
SDL_CommonEvent Struct Reference

#include <SDL_events.h>

Data Fields

Uint32 type
Uint32 reserved
Uint64 timestamp

Detailed Description

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.

Definition at line 337 of file SDL_events.h.

Field Documentation

◆ reserved

Uint32 SDL_CommonEvent::reserved

Definition at line 340 of file SDL_events.h.

◆ timestamp

Uint64 SDL_CommonEvent::timestamp

In nanoseconds, populated using SDL_GetTicksNS()

Definition at line 341 of file SDL_events.h.

◆ type

Uint32 SDL_CommonEvent::type

Event type, shared with all events, Uint32 to cover user events which are not in the SDL_EventType enumeration

Definition at line 339 of file SDL_events.h.


The documentation for this struct was generated from the following file: