Wiki Page Content

Differences between revisions 1 and 9 (spanning 8 versions)
Revision 1 as of 2010-03-23 02:23:13
Size: 196
Editor: SheenaSmith
Comment: create page, add content
Revision 9 as of 2010-09-05 04:06:50
Size: 1430
Editor: SheenaSmith
Comment: update content - tip in address
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
Line 6: Line 7:
== Event Handling (SDL_events.h) == = Event Handling =
Line 8: Line 9:
<<FullSearch(category:CategoryEvents)>> '''Include File(s):''' [[http://hg.libsdl.org/SDL/file/tip/include/SDL_events.h|SDL_events.h]]

<<TableOfContents()>>

== 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'' [[http://wiki.libsdl.org/moin.cgi/CategoryInit|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 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 ==
<<FullSearch(category:CategoryEnum CategoryEvents)>>

== Structures ==
<<FullSearch(category:CategoryStruct CategoryEvents)>>

== Functions ==

<<FullSearch(category:CategoryEvents -CategoryEnum -CategoryStruct)>>

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