|
Size: 1366
Comment: add search exclusions for SG pages
|
Size: 1384
Comment: cached searchs
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 25: | Line 25: |
| <<FullSearch(category:CategoryEnum CategoryEvents -SGEnumerations)>> | <<FullSearchCached(category:CategoryEnum CategoryEvents -SGEnumerations)>> |
| Line 28: | Line 28: |
| <<FullSearch(category:CategoryStruct CategoryEvents -SGStructures)>> | <<FullSearchCached(category:CategoryStruct CategoryEvents -SGStructures)>> |
| Line 31: | Line 31: |
| <<FullSearch(category:CategoryEvents -CategoryEnum -CategoryStruct -SGFunctions)>> | <<FullSearchCached(category:CategoryEvents -CategoryEnum -CategoryStruct -SGFunctions)>> |
Event Handling
Include File(s): SDL_events.h
Introduction
Event handling allows your application to receive input from the user. Event handling is initialized (along with video) with a call to:
SDL_Init(SDL_INIT_VIDEO);
(see Initialization & Shutdown and SDL_Init() for details)
Internally, SDL stores all the events waiting to be handled in an event queue. Using functions like SDL_PollEvent(), SDL_PeepEvents() and SDL_WaitEvent() you can observe and handle waiting input events.
The event queue itself is composed of a series of SDL_Event structures, one for each waiting event. SDL_Event structures are read from the queue with the SDL_PollEvent() function and it is then up to the application to process the information stored with them.
Enumerations
Structures
- SDL_DollarGestureEvent
- SDL_DropEvent
- SDL_Event
- SDL_JoyAxisEvent
- SDL_JoyBallEvent
- SDL_JoyButtonEvent
- SDL_JoyHatEvent
- SDL_KeyboardEvent
- SDL_MouseButtonEvent
- SDL_MouseMotionEvent
- SDL_MouseWheelEvent
- SDL_MultiGestureEvent
- SDL_QuitEvent
- SDL_SensorEvent
- SDL_SysWMEvent
- SDL_TextEditingEvent
- SDL_TextInputEvent
- SDL_TouchFingerEvent
- SDL_UserEvent
- SDL_WindowEvent
