49 #define SDL_RELEASED 0
188 #define SDL_TEXTEDITINGEVENT_TEXT_SIZE (32)
203 #define SDL_TEXTINPUTEVENT_TEXT_SIZE (32)
687 #define SDL_DISABLE 0
701 #define SDL_GetEventState(type) SDL_EventState(type, SDL_QUERY)
SDL_MouseMotionEvent motion
struct SDL_DollarGestureEvent SDL_DollarGestureEvent
Dollar Gesture Event (event.dgesture.*)
DECLSPEC void SDLCALL SDL_FlushEvents(Uint32 minType, Uint32 maxType)
struct SDL_TouchFingerEvent SDL_TouchFingerEvent
Touch finger event structure (event.tfinger.*)
SDL_ControllerAxisEvent caxis
DECLSPEC int SDLCALL SDL_PushEvent(SDL_Event *event)
Add an event to the event queue.
SDL_JoyDeviceEvent jdevice
The "quit requested" event.
Controller device event structure (event.cdevice.*)
int32_t Sint32
A signed 32-bit integer type.
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum type
SDL_DollarGestureEvent dgesture
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
SDL_ControllerDeviceEvent cdevice
SDL_JoyButtonEvent jbutton
DECLSPEC int SDLCALL SDL_WaitEvent(SDL_Event *event)
Waits indefinitely for the next available event.
struct SDL_ControllerDeviceEvent SDL_ControllerDeviceEvent
Controller device event structure (event.cdevice.*)
Joystick axis motion event structure (event.jaxis.*)
struct SDL_JoyDeviceEvent SDL_JoyDeviceEvent
Joystick device event structure (event.jdevice.*)
struct SDL_UserEvent SDL_UserEvent
A user-defined event type (event.user.*)
struct SDL_ControllerAxisEvent SDL_ControllerAxisEvent
Game controller axis motion event structure (event.caxis.*)
DECLSPEC int SDLCALL SDL_PollEvent(SDL_Event *event)
Polls for currently pending events.
struct SDL_MouseWheelEvent SDL_MouseWheelEvent
Mouse wheel event structure (event.wheel.*)
Keyboard text editing event structure (event.edit.*)
The SDL keysym structure, used in key events.
DECLSPEC Uint8 SDLCALL SDL_EventState(Uint32 type, int state)
DECLSPEC void SDLCALL SDL_PumpEvents(void)
Game controller axis motion event structure (event.caxis.*)
struct SDL_MultiGestureEvent SDL_MultiGestureEvent
Multiple Finger Gesture Event (event.mgesture.*)
Dollar Gesture Event (event.dgesture.*)
Keyboard text input event structure (event.text.*)
SDL_MouseWheelEvent wheel
Joystick trackball motion event structure (event.jball.*)
union SDL_Event SDL_Event
General event structure.
DECLSPEC int SDLCALL SDL_PeepEvents(SDL_Event *events, int numevents, SDL_eventaction action, Uint32 minType, Uint32 maxType)
uint32_t Uint32
An unsigned 32-bit integer type.
A user-defined event type (event.user.*)
An event used to request a file open by the system (event.drop.*) This event is disabled by default...
Fields shared by every event.
struct SDL_TextInputEvent SDL_TextInputEvent
Keyboard text input event structure (event.text.*)
struct SDL_WindowEvent SDL_WindowEvent
Window state change event data (event.window.*)
Keyboard button event structure (event.key.*)
char text[SDL_TEXTINPUTEVENT_TEXT_SIZE]
Touch finger event structure (event.tfinger.*)
SDL_MultiGestureEvent mgesture
struct SDL_ControllerButtonEvent SDL_ControllerButtonEvent
Game controller button event structure (event.cbutton.*)
struct SDL_SysWMEvent SDL_SysWMEvent
A video driver dependent system event (event.syswm.*) This event is disabled by default, you can enable it with SDL_EventState()
struct SDL_JoyHatEvent SDL_JoyHatEvent
Joystick hat position change event structure (event.jhat.*)
struct SDL_TextEditingEvent SDL_TextEditingEvent
Keyboard text editing event structure (event.edit.*)
SDL_EventType
The types of events that can be delivered.
char text[SDL_TEXTEDITINGEVENT_TEXT_SIZE]
struct SDL_KeyboardEvent SDL_KeyboardEvent
Keyboard button event structure (event.key.*)
struct SDL_OSEvent SDL_OSEvent
OS Specific event.
GLbitfield GLuint64 timeout
struct SDL_JoyBallEvent SDL_JoyBallEvent
Joystick trackball motion event structure (event.jball.*)
Mouse wheel event structure (event.wheel.*)
DECLSPEC int SDLCALL SDL_WaitEventTimeout(SDL_Event *event, int timeout)
Waits until the specified timeout (in milliseconds) for the next available event. ...
DECLSPEC void SDLCALL SDL_AddEventWatch(SDL_EventFilter filter, void *userdata)
Window state change event data (event.window.*)
DECLSPEC SDL_bool SDLCALL SDL_GetEventFilter(SDL_EventFilter *filter, void **userdata)
DECLSPEC SDL_bool SDLCALL SDL_HasEvent(Uint32 type)
SDL_TextEditingEvent edit
DECLSPEC void SDLCALL SDL_SetEventFilter(SDL_EventFilter filter, void *userdata)
DECLSPEC void SDLCALL SDL_DelEventWatch(SDL_EventFilter filter, void *userdata)
Mouse motion event structure (event.motion.*)
DECLSPEC SDL_bool SDLCALL SDL_HasEvents(Uint32 minType, Uint32 maxType)
Joystick hat position change event structure (event.jhat.*)
SDL_ControllerButtonEvent cbutton
uint8_t Uint8
An unsigned 8-bit integer type.
A video driver dependent system event (event.syswm.*) This event is disabled by default, you can enable it with SDL_EventState()
int16_t Sint16
A signed 16-bit integer type.
SDL_MouseButtonEvent button
DECLSPEC Uint32 SDLCALL SDL_RegisterEvents(int numevents)
DECLSPEC void SDLCALL SDL_FlushEvent(Uint32 type)
struct SDL_CommonEvent SDL_CommonEvent
Fields shared by every event.
uint16_t Uint16
An unsigned 16-bit integer type.
#define SDL_TEXTINPUTEVENT_TEXT_SIZE
struct SDL_JoyAxisEvent SDL_JoyAxisEvent
Joystick axis motion event structure (event.jaxis.*)
struct SDL_MouseMotionEvent SDL_MouseMotionEvent
Mouse motion event structure (event.motion.*)
DECLSPEC void SDLCALL SDL_FilterEvents(SDL_EventFilter filter, void *userdata)
Joystick device event structure (event.jdevice.*)
struct SDL_DropEvent SDL_DropEvent
An event used to request a file open by the system (event.drop.*) This event is disabled by default...
struct SDL_MouseButtonEvent SDL_MouseButtonEvent
Mouse button event structure (event.button.*)
#define SDL_TEXTEDITINGEVENT_TEXT_SIZE
struct SDL_JoyButtonEvent SDL_JoyButtonEvent
Joystick button event structure (event.jbutton.*)
struct SDL_QuitEvent SDL_QuitEvent
The "quit requested" event.
Multiple Finger Gesture Event (event.mgesture.*)
SDL_TouchFingerEvent tfinger