SDL_Event

The structure for all events in SDL.

The SDL_Event structure is the core of all event handling in SDL. SDL_Event is a union of all event structures used in SDL.

\since This struct is available since SDL 3.2.0.

Members

Variables

adevice
SDL_AudioDeviceEvent adevice;

< Audio device event data

button
SDL_MouseButtonEvent button;

< Mouse button event data

cdevice
SDL_CameraDeviceEvent cdevice;

< Camera device event data

clipboard
SDL_ClipboardEvent clipboard;

< Clipboard event data

common
SDL_CommonEvent common;

< Common event data

display
SDL_DisplayEvent display;

< Display event data

drop
SDL_DropEvent drop;

< Drag and drop event data

edit
SDL_TextEditingEvent edit;

< Text editing event data

edit_candidates
SDL_TextEditingCandidatesEvent edit_candidates;

< Text editing candidates event data

gaxis
SDL_GamepadAxisEvent gaxis;

< Gamepad axis event data

gbutton
SDL_GamepadButtonEvent gbutton;

< Gamepad button event data

gdevice
SDL_GamepadDeviceEvent gdevice;

< Gamepad device event data

gsensor
SDL_GamepadSensorEvent gsensor;

< Gamepad sensor event data

gtouchpad
SDL_GamepadTouchpadEvent gtouchpad;

< Gamepad touchpad event data

jaxis
SDL_JoyAxisEvent jaxis;

< Joystick axis event data

jball
SDL_JoyBallEvent jball;

< Joystick ball event data

jbattery
SDL_JoyBatteryEvent jbattery;

< Joystick battery event data

jbutton
SDL_JoyButtonEvent jbutton;

< Joystick button event data

jdevice
SDL_JoyDeviceEvent jdevice;

< Joystick device change event data

jhat
SDL_JoyHatEvent jhat;

< Joystick hat event data

kdevice
SDL_KeyboardDeviceEvent kdevice;

< Keyboard device change event data

key
SDL_KeyboardEvent key;

< Keyboard event data

mdevice
SDL_MouseDeviceEvent mdevice;

< Mouse device change event data

motion
SDL_MouseMotionEvent motion;

< Mouse motion event data

padding
Uint8[128] padding;
Undocumented in source.
paxis
SDL_PenAxisEvent paxis;

< Pen axis event data

pbutton
SDL_PenButtonEvent pbutton;

< Pen button event data

pmotion
SDL_PenMotionEvent pmotion;

< Pen motion event data

pproximity
SDL_PenProximityEvent pproximity;

< Pen proximity event data

ptouch
SDL_PenTouchEvent ptouch;

< Pen tip touching event data

quit
SDL_QuitEvent quit;

< Quit request event data

render
SDL_RenderEvent render;

< Render event data

sensor
SDL_SensorEvent sensor;

< Sensor event data

text
SDL_TextInputEvent text;

< Text input event data

tfinger
SDL_TouchFingerEvent tfinger;

< Touch finger event data

type
Uint32 type;

* The structure for all events in SDL. * * The SDL_Event structure is the core of all event handling in SDL. SDL_Event * is a union of all event structures used in SDL. * * \since This struct is available since SDL 3.2.0. *//**< Event type, shared with all events, Uint32 to cover user events which are not in the SDL_EventType enumeration

user
SDL_UserEvent user;

< Custom event data

wheel
SDL_MouseWheelEvent wheel;

< Mouse wheel event data

window
SDL_WindowEvent window;

< Window event data

Meta