|
⇤ ← Revision 1 as of 2010-07-12 21:12:07
Size: 2863
Comment: create page, add content (Wed Mar 10 ver; changeset 4428)
|
Size: 2920
Comment: add content from old wiki (incomplete)
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 41: | Line 41: |
| ||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|| |
||__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]]|| |
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_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 |
green
*
Related Enumerations
SDL_scancode ???
Related Structures
green
Related Functions
SDL_FilterEvents ???
