0
|
1 <HTML
|
|
2 ><HEAD
|
|
3 ><TITLE
|
|
4 >Event Functions.</TITLE
|
|
5 ><META
|
|
6 NAME="GENERATOR"
|
|
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.61
|
|
8 "><LINK
|
|
9 REL="HOME"
|
|
10 TITLE="SDL Library Documentation"
|
|
11 HREF="index.html"><LINK
|
|
12 REL="UP"
|
|
13 TITLE="Events"
|
|
14 HREF="event.html"><LINK
|
|
15 REL="PREVIOUS"
|
|
16 TITLE="SDLKey"
|
|
17 HREF="sdlkey.html"><LINK
|
|
18 REL="NEXT"
|
|
19 TITLE="SDL_PumpEvents"
|
|
20 HREF="sdlpumpevents.html"></HEAD
|
|
21 ><BODY
|
|
22 CLASS="SECT1"
|
|
23 BGCOLOR="#FFF8DC"
|
|
24 TEXT="#000000"
|
|
25 LINK="#0000ee"
|
|
26 VLINK="#551a8b"
|
|
27 ALINK="#ff0000"
|
|
28 ><DIV
|
|
29 CLASS="NAVHEADER"
|
|
30 ><TABLE
|
|
31 WIDTH="100%"
|
|
32 BORDER="0"
|
|
33 CELLPADDING="0"
|
|
34 CELLSPACING="0"
|
|
35 ><TR
|
|
36 ><TH
|
|
37 COLSPAN="3"
|
|
38 ALIGN="center"
|
|
39 >SDL Library Documentation</TH
|
|
40 ></TR
|
|
41 ><TR
|
|
42 ><TD
|
|
43 WIDTH="10%"
|
|
44 ALIGN="left"
|
|
45 VALIGN="bottom"
|
|
46 ><A
|
|
47 HREF="sdlkey.html"
|
|
48 >Prev</A
|
|
49 ></TD
|
|
50 ><TD
|
|
51 WIDTH="80%"
|
|
52 ALIGN="center"
|
|
53 VALIGN="bottom"
|
|
54 >Chapter 8. Events</TD
|
|
55 ><TD
|
|
56 WIDTH="10%"
|
|
57 ALIGN="right"
|
|
58 VALIGN="bottom"
|
|
59 ><A
|
|
60 HREF="sdlpumpevents.html"
|
|
61 >Next</A
|
|
62 ></TD
|
|
63 ></TR
|
|
64 ></TABLE
|
|
65 ><HR
|
|
66 ALIGN="LEFT"
|
|
67 WIDTH="100%"></DIV
|
|
68 ><DIV
|
|
69 CLASS="SECT1"
|
|
70 ><H1
|
|
71 CLASS="SECT1"
|
|
72 ><A
|
|
73 NAME="EVENTFUNCTIONS"
|
|
74 >Event Functions.</A
|
|
75 ></H1
|
|
76 ><DIV
|
|
77 CLASS="TOC"
|
|
78 ><DL
|
|
79 ><DT
|
|
80 ><B
|
|
81 >Table of Contents</B
|
|
82 ></DT
|
|
83 ><DT
|
|
84 ><A
|
|
85 HREF="sdlpumpevents.html"
|
|
86 >SDL_PumpEvents</A
|
|
87 > — Pumps the event loop, gathering events from the input devices.</DT
|
|
88 ><DT
|
|
89 ><A
|
|
90 HREF="sdlpeepevents.html"
|
|
91 >SDL_PeepEvents</A
|
|
92 > — Checks the event queue for messages and optionally returns them.</DT
|
|
93 ><DT
|
|
94 ><A
|
|
95 HREF="sdlpollevent.html"
|
|
96 >SDL_PollEvent</A
|
|
97 > — Polls for currently pending events.</DT
|
|
98 ><DT
|
|
99 ><A
|
|
100 HREF="sdlwaitevent.html"
|
|
101 >SDL_WaitEvent</A
|
|
102 > — Waits indefinitely for the next available event.</DT
|
|
103 ><DT
|
|
104 ><A
|
|
105 HREF="sdlpushevent.html"
|
|
106 >SDL_PushEvent</A
|
|
107 > — Pushes an event onto the event queue</DT
|
|
108 ><DT
|
|
109 ><A
|
|
110 HREF="sdlseteventfilter.html"
|
|
111 >SDL_SetEventFilter</A
|
|
112 > — Sets up a filter to process all events before they are posted
|
|
113 to the event queue.</DT
|
|
114 ><DT
|
|
115 ><A
|
|
116 HREF="sdlgeteventfilter.html"
|
|
117 >SDL_GetEventFilter</A
|
|
118 > — Retrieves a pointer to he event filter</DT
|
|
119 ><DT
|
|
120 ><A
|
|
121 HREF="sdleventstate.html"
|
|
122 >SDL_EventState</A
|
|
123 > — This function allows you to set the state of processing certain events.</DT
|
|
124 ><DT
|
|
125 ><A
|
|
126 HREF="sdlgetkeystate.html"
|
|
127 >SDL_GetKeyState</A
|
|
128 > — Get a snapshot of the current keyboard state</DT
|
|
129 ><DT
|
|
130 ><A
|
|
131 HREF="sdlgetmodstate.html"
|
|
132 >SDL_GetModState</A
|
|
133 > — Get the state of modifier keys.</DT
|
|
134 ><DT
|
|
135 ><A
|
|
136 HREF="sdlsetmodstate.html"
|
|
137 >SDL_SetModState</A
|
|
138 > — Set the current key modifier state</DT
|
|
139 ><DT
|
|
140 ><A
|
|
141 HREF="sdlgetkeyname.html"
|
|
142 >SDL_GetKeyName</A
|
|
143 > — Get the name of an SDL virtual keysym</DT
|
|
144 ><DT
|
|
145 ><A
|
|
146 HREF="sdlenableunicode.html"
|
|
147 >SDL_EnableUNICODE</A
|
|
148 > — Enable UNICODE translation</DT
|
|
149 ><DT
|
|
150 ><A
|
|
151 HREF="sdlenablekeyrepeat.html"
|
|
152 >SDL_EnableKeyRepeat</A
|
|
153 > — Set keyboard repeat rate.</DT
|
|
154 ><DT
|
|
155 ><A
|
|
156 HREF="sdlgetmousestate.html"
|
|
157 >SDL_GetMouseState</A
|
|
158 > — Retrieve the current state of the mouse</DT
|
|
159 ><DT
|
|
160 ><A
|
|
161 HREF="sdlgetrelativemousestate.html"
|
|
162 >SDL_GetRelativeMouseState</A
|
|
163 > — Retrieve the current state of the mouse</DT
|
|
164 ><DT
|
|
165 ><A
|
|
166 HREF="sdlgetappstate.html"
|
|
167 >SDL_GetAppState</A
|
|
168 > — Get the state of the application</DT
|
|
169 ><DT
|
|
170 ><A
|
|
171 HREF="sdljoystickeventstate.html"
|
|
172 >SDL_JoystickEventState</A
|
|
173 > — Enable/disable joystick event polling</DT
|
|
174 ></DL
|
|
175 ></DIV
|
|
176 ></DIV
|
|
177 ><DIV
|
|
178 CLASS="NAVFOOTER"
|
|
179 ><HR
|
|
180 ALIGN="LEFT"
|
|
181 WIDTH="100%"><TABLE
|
|
182 WIDTH="100%"
|
|
183 BORDER="0"
|
|
184 CELLPADDING="0"
|
|
185 CELLSPACING="0"
|
|
186 ><TR
|
|
187 ><TD
|
|
188 WIDTH="33%"
|
|
189 ALIGN="left"
|
|
190 VALIGN="top"
|
|
191 ><A
|
|
192 HREF="sdlkey.html"
|
|
193 >Prev</A
|
|
194 ></TD
|
|
195 ><TD
|
|
196 WIDTH="34%"
|
|
197 ALIGN="center"
|
|
198 VALIGN="top"
|
|
199 ><A
|
|
200 HREF="index.html"
|
|
201 >Home</A
|
|
202 ></TD
|
|
203 ><TD
|
|
204 WIDTH="33%"
|
|
205 ALIGN="right"
|
|
206 VALIGN="top"
|
|
207 ><A
|
|
208 HREF="sdlpumpevents.html"
|
|
209 >Next</A
|
|
210 ></TD
|
|
211 ></TR
|
|
212 ><TR
|
|
213 ><TD
|
|
214 WIDTH="33%"
|
|
215 ALIGN="left"
|
|
216 VALIGN="top"
|
|
217 >SDLKey</TD
|
|
218 ><TD
|
|
219 WIDTH="34%"
|
|
220 ALIGN="center"
|
|
221 VALIGN="top"
|
|
222 ><A
|
|
223 HREF="event.html"
|
|
224 >Up</A
|
|
225 ></TD
|
|
226 ><TD
|
|
227 WIDTH="33%"
|
|
228 ALIGN="right"
|
|
229 VALIGN="top"
|
|
230 >SDL_PumpEvents</TD
|
|
231 ></TR
|
|
232 ></TABLE
|
|
233 ></DIV
|
|
234 ></BODY
|
|
235 ></HTML
|
|
236 > |