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
There is some backward compatibility info that is not currently included here. See the header for more info.
* 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_KEYDOWN/UP |
|
SDL_MOUSEMOTION |
|
SDL_MOUSEBUTTONDOWN/UP |
|
SDL_JOYAXISMOTION |
|
SDL_JOYBALLMOTION |
|
SDL_JOYHATMOTION |
|
SDL_JOYBUTTONDOWN/UP |
|
SDL_VIDEORESIZE |
|
SDL_VIDEOEXPOSE |
|
SDL_QUIT |
|
SDL_USEREVENT |
SDL_UserEvent |
SDL_SYSWMEVENT |
SDL_MouseWheelEvent is missing *
Related Enumerations
SDL_scancode ???
Related Structures
Should all the events.h structures be listed here?
Related Functions
SDL_FilterEvents ???