DRAFT

SDL_Event

A structure union that contains the general event structure.

Data Fields

Uint8

type

event type, shared with all events

SDL_WindowEvent

window

window event data

SDL_KeyboardEvent

key

keyboard event data

SDL_TextEditingEvent

edit

text editing event data

SDL_TextInputEvent

text

text input event data

SDL_MouseMotionEvent

motion

mouse motion event data

SDL_MouseButtonEvent

button

mouse button event data

SDL_MouseWheelEvent

wheel

mouse wheel event data

SDL_JoyAxisEvent

jaxis

joystick axis event data

SDL_JoyBallEvent

jball

joystick ball event data

SDL_JoyHatEvent

jhat

joystick hat event data

SDL_JoyButtonEvent

jbutton

joystick button event data

SDL_QuitEvent

quit

quit request event data

SDL_UserEvent

user

custom event data

SDL_SysWMEvent

syswm

system dependent window event data

SDL_ProximityEvent

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_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

SDL_MouseWheelEvent is missing *

Should all the events.h structures be listed here?


CategoryStruct

SDL_Event (last edited 2010-07-13 05:31:22 by SheenaSmith)