The types of events that can be delivered.
Defined in SDL_events.h
typedef enum SDL_EventType
{0, /**< Unused (do not remove) */
SDL_FIRSTEVENT =
/* Application events */
0x100, /**< User-requested quit */
SDL_QUIT =
/* These application events have special meaning on iOS, see README-ios.md for details */
/**< The application is being terminated by the OS
SDL_APP_TERMINATING, Called on iOS in applicationWillTerminate()
Called on Android in onDestroy()
*/
/**< The application is low on memory, free memory if possible.
SDL_APP_LOWMEMORY, Called on iOS in applicationDidReceiveMemoryWarning()
Called on Android in onLowMemory()
*/
/**< The application is about to enter the background
SDL_APP_WILLENTERBACKGROUND, Called on iOS in applicationWillResignActive()
Called on Android in onPause()
*/
/**< The application did enter the background and may not get CPU for some time
SDL_APP_DIDENTERBACKGROUND, Called on iOS in applicationDidEnterBackground()
Called on Android in onPause()
*/
/**< The application is about to enter the foreground
SDL_APP_WILLENTERFOREGROUND, Called on iOS in applicationWillEnterForeground()
Called on Android in onResume()
*/
/**< The application is now interactive
SDL_APP_DIDENTERFOREGROUND, Called on iOS in applicationDidBecomeActive()
Called on Android in onResume()
*/
/**< The user's locale preferences have changed. */
SDL_LOCALECHANGED,
/* Display events */
0x150, /**< Display state change */
SDL_DISPLAYEVENT =
/* Window events */
0x200, /**< Window state change */
SDL_WINDOWEVENT = /**< System specific event */
SDL_SYSWMEVENT,
/* Keyboard events */
0x300, /**< Key pressed */
SDL_KEYDOWN = /**< Key released */
SDL_KEYUP, /**< Keyboard text editing (composition) */
SDL_TEXTEDITING, /**< Keyboard text input */
SDL_TEXTINPUT, /**< Keymap changed due to a system event such as an
SDL_KEYMAPCHANGED, input language or keyboard layout change.
*/
/**< Extended keyboard text editing (composition) */
SDL_TEXTEDITING_EXT,
/* Mouse events */
0x400, /**< Mouse moved */
SDL_MOUSEMOTION = /**< Mouse button pressed */
SDL_MOUSEBUTTONDOWN, /**< Mouse button released */
SDL_MOUSEBUTTONUP, /**< Mouse wheel motion */
SDL_MOUSEWHEEL,
/* Joystick events */
0x600, /**< Joystick axis motion */
SDL_JOYAXISMOTION = /**< Joystick trackball motion */
SDL_JOYBALLMOTION, /**< Joystick hat position change */
SDL_JOYHATMOTION, /**< Joystick button pressed */
SDL_JOYBUTTONDOWN, /**< Joystick button released */
SDL_JOYBUTTONUP, /**< A new joystick has been inserted into the system */
SDL_JOYDEVICEADDED, /**< An opened joystick has been removed */
SDL_JOYDEVICEREMOVED, /**< Joystick battery level change */
SDL_JOYBATTERYUPDATED,
/* Game controller events */
0x650, /**< Game controller axis motion */
SDL_CONTROLLERAXISMOTION = /**< Game controller button pressed */
SDL_CONTROLLERBUTTONDOWN, /**< Game controller button released */
SDL_CONTROLLERBUTTONUP, /**< A new Game controller has been inserted into the system */
SDL_CONTROLLERDEVICEADDED, /**< An opened Game controller has been removed */
SDL_CONTROLLERDEVICEREMOVED, /**< The controller mapping was updated */
SDL_CONTROLLERDEVICEREMAPPED, /**< Game controller touchpad was touched */
SDL_CONTROLLERTOUCHPADDOWN, /**< Game controller touchpad finger was moved */
SDL_CONTROLLERTOUCHPADMOTION, /**< Game controller touchpad finger was lifted */
SDL_CONTROLLERTOUCHPADUP, /**< Game controller sensor was updated */
SDL_CONTROLLERSENSORUPDATE,
SDL_CONTROLLERUPDATECOMPLETE_RESERVED_FOR_SDL3,/**< Game controller Steam handle has changed */
SDL_CONTROLLERSTEAMHANDLEUPDATED,
/* Touch events */
0x700,
SDL_FINGERDOWN =
SDL_FINGERUP,
SDL_FINGERMOTION,
/* Gesture events */
0x800,
SDL_DOLLARGESTURE =
SDL_DOLLARRECORD,
SDL_MULTIGESTURE,
/* Clipboard events */
0x900, /**< The clipboard or primary selection changed */
SDL_CLIPBOARDUPDATE =
/* Drag and drop events */
0x1000, /**< The system requests a file open */
SDL_DROPFILE = /**< text/plain drag-and-drop event */
SDL_DROPTEXT, /**< A new set of drops is beginning (NULL filename) */
SDL_DROPBEGIN, /**< Current set of drops is now complete (NULL filename) */
SDL_DROPCOMPLETE,
/* Audio hotplug events */
0x1100, /**< A new audio device is available */
SDL_AUDIODEVICEADDED = /**< An audio device has been removed. */
SDL_AUDIODEVICEREMOVED,
/* Sensor events */
0x1200, /**< A sensor was updated */
SDL_SENSORUPDATE =
/* Render events */
0x2000, /**< The render targets have been reset and their contents need to be updated */
SDL_RENDER_TARGETS_RESET = /**< The device has been reset and all textures need to be recreated */
SDL_RENDER_DEVICE_RESET,
/* Internal events */
0x7F00, /**< Signals the end of an event poll cycle */
SDL_POLLSENTINEL =
/** Events SDL_USEREVENT through SDL_LASTEVENT are for your use,
* and should be allocated with SDL_RegisterEvents()
*/
0x8000,
SDL_USEREVENT =
/**
* This last event is only for bounding internal arrays
*/
0xFFFF
SDL_LASTEVENT = } SDL_EventType;