Wiki Page Content

Differences between revisions 4 and 5
Revision 4 as of 2010-07-25 23:41:18
Size: 2263
Editor: SheenaSmith
Comment: update formatting
Revision 5 as of 2010-07-27 23:13:58
Size: 2892
Editor: SheenaSmith
Comment: update content - changeset 4568
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
||SDL_NOEVENT||unused (do not remove)|| ||<style="color: #808080;">SDL_FIRSTEVENT||<style="color: #808080;">unused (do not remove)||
||||''Application events''||
||SDL_QUIT||user-requested quit||
||||''Window events''||
Line 13: Line 16:
||SDL_SYSWMEVENT||system specific event||
||||''Keyboard events''||
Line 17: Line 22:
||||''Mouse events''||
Line 21: Line 27:
||||''Tablet or multiple mice input device events''||
||SDL_INPUTMOTION||input moved||
||SDL_INPUTBUTTONDOWN||input button pressed||
||SDL_INPUTBUTTONUP||input button released||
||SDL_INPUTWHEEL||input wheel motion||
||SDL_INPUTPROXIMITYIN||input pen entered proximity||
||SDL_INPUTPROXIMITYOUT||input pen left proximity||
||||''Joystick events''||
Line 26: Line 40:
||SDL_QUIT||user-requested quit||
||SDL_SYSWMEVENT||system specific event||
||||''Clipboard events''||
||SDL_CLIPBOARDUPDATE||the clipboard changed||
||||''Obsolete events''||
||<style="color: #808080;">SDL_EVENT_COMPAT1||<style="color: #808080;">SDL 1.2 events for compatibility||
||<style="color: #808080;">SDL_EVENT_COMPAT2||<style="color: #808080;">SDL 1.2 events for compatibility||
||<style="color: #808080;">SDL_EVENT_COMPAT3||<style="color: #808080;">SDL 1.2 events for compatibility||
||||''These are for your use, and should be allocated with [[SDL_RegisterEvents]]()''||
||SDL_USEREVENT||^a user-specified event^||
||SDL_LASTEVENT||only for bounding internal arrays||



<<Color2(green,I think these remaining ones are removed after the last changes but I want to be sure before I delete them.)>>
Line 30: Line 56:
||<style="color: #808080;">SDL_EVENT_RESERVED1||<style="color: #808080;">reserved for future use...||
||<style="color: #808080;">SDL_EVENT_RESERVED2||<style="color: #808080;">reserved for future use...||
||<style="color: #808080;">SDL_EVENT_RESERVED3||<style="color: #808080;">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

DRAFT

SDL_EventType

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

Values

SDL_FIRSTEVENT

unused (do not remove)

Application events

SDL_QUIT

user-requested quit

Window events

SDL_WINDOWEVENT

window state change

SDL_SYSWMEVENT

system specific event

Keyboard events

SDL_KEYDOWN

keys pressed

SDL_KEYUP

keys released

SDL_TEXTEDITING

keyboard text editing (composition)

SDL_TEXTINPUT

keyboard text input

Mouse events

SDL_MOUSEMOTION

mouse moved

SDL_MOUSEBUTTONDOWN

mouse button pressed

SDL_MOUSEBUTTONUP

mouse button released

SDL_MOUSEWHEEL

mouse wheel motion

Tablet or multiple mice input device events

SDL_INPUTMOTION

input moved

SDL_INPUTBUTTONDOWN

input button pressed

SDL_INPUTBUTTONUP

input button released

SDL_INPUTWHEEL

input wheel motion

SDL_INPUTPROXIMITYIN

input pen entered proximity

SDL_INPUTPROXIMITYOUT

input pen left proximity

Joystick events

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

Clipboard events

SDL_CLIPBOARDUPDATE

the clipboard changed

Obsolete events

SDL_EVENT_COMPAT1

SDL 1.2 events for compatibility

SDL_EVENT_COMPAT2

SDL 1.2 events for compatibility

SDL_EVENT_COMPAT3

SDL 1.2 events for compatibility

These are for your use, and should be allocated with SDL_RegisterEvents()

SDL_USEREVENT

a user-specified event

SDL_LASTEVENT

only for bounding internal arrays

green

SDL_PROXIMITYIN

proximity In event

SDL_PROXIMITYOUT

proximity Out event

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