Wiki Page Content

Differences between revisions 5 and 7 (spanning 2 versions)
Revision 5 as of 2010-06-28 23:58:43
Size: 1353
Editor: SheenaSmith
Comment: update content
Revision 7 as of 2010-08-23 20:04:31
Size: 1391
Editor: SheenaSmith
Comment: added enums and structs lists
Deletions are marked like this. Additions are marked like this.
Line 23: Line 23:
The key to event handling in SDL is the SDL_Event union. The event queue itself is composed of a series of SDL_Event unions, one for each waiting event. SDL_Event unions 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. The key to event handling in SDL is the [[SDL_Event]] union. The event queue itself is composed of a series of [[SDL_Event]] unions, one for each waiting event. [[SDL_Event]] unions 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.
Line 25: Line 25:
<<Color2(green,A page for SDL_Event is being created. A link will be included here when it is ready.)>> == Enumerations ==
<<FullSearch(category:CategoryEventsEnum)>>

== Structures ==
<<FullSearch(category:CategoryEventsStruct)>>

DRAFT

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 key to event handling in SDL is the SDL_Event union. The event queue itself is composed of a series of SDL_Event unions, one for each waiting event. SDL_Event unions 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