Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2010-02-12 23:31:20
Size: 1811
Editor: adsl-71-147-59-141
Comment: removed comment
Revision 3 as of 2010-03-23 01:31:18
Size: 2113
Editor: SheenaSmith
Comment: complete page from previous
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
= SDL_Enumeration = = SDL_EventType =
Line 11: Line 11:
||SDL_NOEVENT||Unused (do not remove)||
||SDL_WINDOWEVENT||Window state change||
||SDL_KEYDOWN||Keys pressed||
||SDL_KEY
UP||Keys released||
||SDL_TEXTEDITING||Keyboard text editing (composition)||
||SDL_TEXTINPUT||Keyboard text input||
||SDL_MOUSEMOTION||Mouse moved||
||SDL_MOUSEBUTTONDOWN||Mouse button pressed||
||SDL_MOUSEBUTTON
UP||Mouse button released||
||SDL_MOUSEWHEEL||Mouse wheel motion||
||SDL_JOYAXISMOTION||Joystick axis motion||
||SDL_JOYBALLMOTION||Joystick trackball motion||
||SDL_JOYHATMOTION||Joystick hat position change||
||SDL_JOYBUTTONDOWN||Joystick button pressed||
||SDL_JOYBUTTONUP||Joystick button released||
||SDL_QUIT||User-requested quit||
||SDL_SYSWMEVENT||System specific event||
||SDL_PROXIMITYIN||Proximity In event||
||SDL_PROXIMITYOUT||Proximity Out event||
||SDL_EVENT_RESERVED1||Reserved for future use...||
||SDL_EVENT_RESERVED2||Reserved for future use...||
||SDL_EVENT_RESERVED3||Reserved for future use...||
||SDL_NOEVENT||unused (do not remove)||
||SDL_WINDOWEVENT||window state change||
||SDL_KEYDO
WN||keys pressed||
||SDL_KEYUP||keys released||
||SDL_TEXTEDITING||keyboard text editing (composition)||
||SDL_TEXTINPUT||keyboard text input||
||SDL_MOUSEMOTION||mouse moved||
||SDL_
MOUSEBUTTONDOWN||mouse button pressed||
||SDL_MOUSEBUTTONUP||mouse button released||
||SDL_MOUSEWHEEL||mouse wheel motion||
||SDL_JOYAXISMOTION||joystick axis motion||
||SDL_JOYBALLMOTION||joystick trackball motion||
||SDL_JOYHATMOTION||joystick hat position change||
||SDL_JOYBUTTONDOWN||joystick button pressed||
||SDL_JOYBUTTONUP||joystick button released||
||SDL_QUIT||user-requested quit||
||SDL_SYSWMEVENT||system specific event||
||SDL_PROXIMITYIN||proximity In event||
||SDL_PROXIMITYOUT||proximity Out event||
||SDL_EVENT_RESERVED1||reserved for future use...||
||SDL_EVENT_RESERVED2||reserved for future use...||
||SDL_EVENT_RESERVED3||reserved for future use...||

<<Color2(green,Not sure what to do with this part of the enum. Does it belong here or not?)>>
Events SDL_USEREVENT through SDL_MAXEVENTS-1 are for your use

SDL_USEREVENT = 24,

This last event is only for bounding internal arrays. It is the number of bits in the event mask datatype -- Uint32.

SDL_NUMEVENTS = 32
Line 43: Line 52:
[[SDL_KeyboardEvent]]
[[SDL_TextEditingEvent]]
[[SDL_TextInputEvent]]
[[SDL_MouseMotionEvent]]
[[SDL_MouseButtonEvent]]
[[SDL_MouseWheelEvent]]
[[SDL_JoyAxisEvent]]
[[SDL_JoyBallEvent]]
[[SDL_JoyHatEvent]]
[[SDL_JoyButtonEvent]]
[[SDL_QuitEvent]]
[[SDL_UserEvent]]
[[SDL_SysWMEvent]]
[[SDL_ProximityEvent]]
 . [[SDL_JoyAxisEvent]]
 . [[SDL_JoyBallEvent]]
 . [[SDL_JoyButtonEvent]]
 . [[SDL_JoyHatEvent]]
 . [[SDL_KeyboardEvent]]
 . [[SDL_MouseButtonEvent]]
 . [[SDL_MouseMotionEvent]]
 . [[SDL_MouseWheelEvent]]
 . [[SDL_ProximityEvent]]
 . [[SDL_QuitEvent]]
 . [[SDL_SysWMEvent]]
 . [[SDL_TextEditingEvent]]
 . [[SDL_TextInputEvent]]
 . [[SDL_UserEvent]]
Line 59: Line 68:
 .[[SDL_FunctionLeaveSectionIfEmpty]]
Line 62: Line 70:
[[CategoryEnum]]
----

DRAFT

SDL_EventType

An enumeration of the types of events that can be delivered.

Values

SDL_NOEVENT

unused (do not remove)

SDL_WINDOWEVENT

window state change

SDL_KEYDOWN

keys pressed

SDL_KEYUP

keys released

SDL_TEXTEDITING

keyboard text editing (composition)

SDL_TEXTINPUT

keyboard text input

SDL_MOUSEMOTION

mouse moved

SDL_MOUSEBUTTONDOWN

mouse button pressed

SDL_MOUSEBUTTONUP

mouse button released

SDL_MOUSEWHEEL

mouse wheel motion

SDL_JOYAXISMOTION

joystick axis motion

SDL_JOYBALLMOTION

joystick trackball motion

SDL_JOYHATMOTION

joystick hat position change

SDL_JOYBUTTONDOWN

joystick button pressed

SDL_JOYBUTTONUP

joystick button released

SDL_QUIT

user-requested quit

SDL_SYSWMEVENT

system specific event

SDL_PROXIMITYIN

proximity In event

SDL_PROXIMITYOUT

proximity Out event

SDL_EVENT_RESERVED1

reserved for future use...

SDL_EVENT_RESERVED2

reserved for future use...

SDL_EVENT_RESERVED3

reserved for future use...

green

Events SDL_USEREVENT through SDL_MAXEVENTS-1 are for your use

SDL_USEREVENT = 24,

This last event is only for bounding internal arrays. It is the number of bits in the event mask datatype -- Uint32.

SDL_NUMEVENTS = 32

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryEnum

None: SDL_EventType (last edited 2016-10-13 20:32:06 by PhilippWiesemann)

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