DRAFT |
SDL_Event
A structure union that contains the general event structure.
Contents
Data Fields
Uint8 |
type |
event type, shared with all events |
window |
window event data |
|
key |
keyboard event data |
|
edit |
text editing event data |
|
text |
text input event data |
|
motion |
mouse motion event data |
|
button |
mouse button event data |
|
wheel |
mouse wheel event data |
|
jaxis |
joystick axis event data |
|
jball |
joystick ball event data |
|
jhat |
joystick hat event data |
|
jbutton |
joystick button event data |
|
quit |
quit request event data |
|
user |
custom event data |
|
syswm |
system dependent window event data |
|
proximity |
proximity In or Out event |
Code Examples
You can add your code example here
Remarks
You can add useful comments here
green
* The SDL_Event union is the core to all event handling in SDL; it's probably the most important structure after SDL_Surface. SDL_Event is a union of all event structures used in SDL, using it is a simple matter of knowing which union member relates to which event type.
Event type |
Event Structure |
SDL_ACTIVEEVENT |
SDL_ActiveEvent |
SDL_KEYDOWN/UP |
SDL_KeyboardEvent |
SDL_MOUSEMOTION |
SDL_MouseMotionEvent |
SDL_MOUSEBUTTONDOWN/UP |
SDL_MouseButtonEvent |
SDL_JOYAXISMOTION |
SDL_JoyAxisEvent |
SDL_JOYBALLMOTION |
SDL_JoyBallEvent |
SDL_JOYHATMOTION |
SDL_JoyHatEvent |
SDL_JOYBUTTONDOWN/UP |
SDL_JoyButtonEvent |
SDL_VIDEORESIZE |
SDL_ResizeEvent |
SDL_VIDEOEXPOSE |
SDL_ExposeEvent |
SDL_QUIT |
SDL_QuitEvent |
SDL_USEREVENT |
SDL_UserEvent |
SDL_SYSWMEVENT |
SDL_SysWMEvent |
green
*
Related Enumerations
SDL_scancode ???
Related Structures
green
Related Functions
SDL_FilterEvents ???
