7 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
10 TITLE="SDL Library Documentation"
11 HREF="index.html"><LINK
14 HREF="reference.html"><LINK
16 TITLE="SDL_WM_GrabInput"
17 HREF="sdlwmgrabinput.html"><LINK
19 TITLE="SDL Event Structures."
20 HREF="eventstructures.html"><META
22 CONTENT="events"><META
24 CONTENT="function"></HEAD
35 SUMMARY="Header navigation table"
44 >SDL Library Documentation</TH
52 HREF="sdlwmgrabinput.html"
66 HREF="eventstructures.html"
81 >Chapter 8. Events</H1
91 HREF="event.html#AEN3691"
96 HREF="eventstructures.html"
97 >SDL Event Structures.</A
101 HREF="eventfunctions.html"
115 >Event handling allows your application to receive input from the user. Event handling is initalised (along with video) with a call to:
117 CLASS="PROGRAMLISTING"
118 >SDL_Init(SDL_INIT_VIDEO);</PRE
120 Internally, SDL stores all the events waiting to be handled in an event queue. Using functions like <A
121 HREF="sdlpollevent.html"
127 HREF="sdlpeepevents.html"
132 > you can observe and handle waiting input events.</P
134 >The key to event handling in SDL is the <A
140 > union. The event queue itself is composed of a series of <SPAN
143 > unions, one for each waiting event. <SPAN
146 > unions are read from the queue with the <TT
149 > function and it is then up to the application to process the information stored with them.</P
157 SUMMARY="Footer navigation table"
168 HREF="sdlwmgrabinput.html"
186 HREF="eventstructures.html"
196 >SDL_WM_GrabInput</TD
202 HREF="reference.html"
210 >SDL Event Structures.</TD