Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2010-07-12 21:12:07
Size: 2863
Editor: SheenaSmith
Comment: create page, add content (Wed Mar 10 ver; changeset 4428)
Revision 2 as of 2010-07-13 05:31:22
Size: 2920
Editor: SheenaSmith
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.

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

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

*

green


CategoryStruct

None: SDL_Event (last edited 2018-09-29 22:14:59 by DanielG)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit