Wiki Page Content

Differences between revisions 13 and 14
Revision 13 as of 2012-01-04 18:34:57
Size: 1384
Editor: SheenaSmith
Comment: cached searchs
Revision 14 as of 2013-10-12 19:12:03
Size: 1402
Comment: Fixed search to exclude the right pages.
Deletions are marked like this. Additions are marked like this.
Line 25: Line 25:
<<FullSearchCached(category:CategoryEnum CategoryEvents -SGEnumerations)>> <<FullSearchCached(category:CategoryEnum CategoryEvents -title:SGEnumerations)>>
Line 28: Line 28:
<<FullSearchCached(category:CategoryStruct CategoryEvents -SGStructures)>> <<FullSearchCached(category:CategoryStruct CategoryEvents -title:SGStructures)>>
Line 31: Line 31:
<<FullSearchCached(category:CategoryEvents -CategoryEnum -CategoryStruct -SGFunctions)>> <<FullSearchCached(category:CategoryEvents -CategoryEnum -CategoryStruct -title: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:

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

Functions


CategoryCategory

None: CategoryEvents (last edited 2014-03-10 18:53:46 by nairou)

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