Wiki Page Content

Differences between revisions 21 and 22
Revision 21 as of 2013-06-13 20:16:46
Size: 3650
Comment: Updated.
Revision 22 as of 2013-06-13 20:26:07
Size: 4374
Comment: Added.
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:
||||<bgcolor="#EDEDED">''Android and iOS events''||
||SDL_APP_TERMINATING||||
||SDL_APP_LOWMEMORY||||
||SDL_APP_WILLENTERBACKGROUND||||
||SDL_APP_DIDENTERBACKGROUND||||
||SDL_APP_WILLENTERFOREGROUND||||
||SDL_APP_DIDENTERFOREGROUND||||
Line 33: Line 40:
||SDL_JOYDEVICEADDED||joystick connected||
||SDL_JOYDEVICEREMOVED||joystick disconnected||
||||<bgcolor="#EDEDED">''Controller events''||
||SDL_CONTROLLERAXISMOTION||controller axis motion||
||SDL_CONTROLLERBUTTONDOWN||controller button pressed||
||SDL_CONTROLLERBUTTONUP||controller button released||
||SDL_CONTROLLERDEVICEADDED||controller connected||
||SDL_CONTROLLERDEVICEREMOVED||controller disconnected||
||SDL_CONTROLLERDEVICEREMAPPED||controller mapping updated||

DRAFT

SDL_EventType

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

Values

SDL_FIRSTEVENT

do not remove (unused)

Application events

SDL_QUIT

user-requested quit; see Remarks for details

Android and iOS events

SDL_APP_TERMINATING

SDL_APP_LOWMEMORY

SDL_APP_WILLENTERBACKGROUND

SDL_APP_DIDENTERBACKGROUND

SDL_APP_WILLENTERFOREGROUND

SDL_APP_DIDENTERFOREGROUND

Window events

SDL_WINDOWEVENT

window state change

SDL_SYSWMEVENT

system specific event

Keyboard events

SDL_KEYDOWN

key pressed

SDL_KEYUP

key 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

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

SDL_JOYDEVICEADDED

joystick connected

SDL_JOYDEVICEREMOVED

joystick disconnected

Controller events

SDL_CONTROLLERAXISMOTION

controller axis motion

SDL_CONTROLLERBUTTONDOWN

controller button pressed

SDL_CONTROLLERBUTTONUP

controller button released

SDL_CONTROLLERDEVICEADDED

controller connected

SDL_CONTROLLERDEVICEREMOVED

controller disconnected

SDL_CONTROLLERDEVICEREMAPPED

controller mapping updated

Touch events

SDL_FINGERDOWN

SDL_FINGERUP

SDL_FINGERMOTION

SDL_TOUCHBUTTONDOWN

SDL_TOUCHBUTTONUP

Gesture events

SDL_DOLLARGESTURE

SDL_DOLLARRECORD

SDL_MULTIGESTURE

Clipboard events

SDL_CLIPBOARDUPDATE

the clipboard changed

Drag and drop events

SDL_DROPFILE

the system requests a file open

Obsolete events

SDL_EVENT_COMPAT1

SDL 1.2 events for compatibility (deprecated)

SDL_EVENT_COMPAT2

SDL 1.2 events for compatibility (deprecated)

SDL_EVENT_COMPAT3

SDL 1.2 events for compatibility (deprecated)

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

Code Examples

You can add your code example here

Remarks

Application Events

An SDL_QUIT event is generated when the user tries to close the application window. If it is ignored or filtered out, the window will remain open. If it is not ignored or filtered, it is queued normally and the window is allowed to close. When the window is closed, screen updates will complete, but have no effect.

SDL_Init() installs signal handlers for SIGINT (keyboard interrupt) and SIGTERM (system termination request), if handlers do not already exist, that generate SDL_QUIT events as well. There is no way to determine the cause of an SDL_QUIT event, but setting a signal handler in your application will override the default generation of quit events for that signal.


CategoryEnum, CategoryEvents

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