Skip to content

Latest commit

 

History

History
481 lines (481 loc) · 7.07 KB

eventfunctions.html

File metadata and controls

481 lines (481 loc) · 7.07 KB
 
Apr 26, 2001
Apr 26, 2001
1
2
3
4
5
6
<HTML
><HEAD
><TITLE
>Event Functions.</TITLE
><META
NAME="GENERATOR"
Feb 10, 2004
Feb 10, 2004
7
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
Apr 26, 2001
Apr 26, 2001
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
"><LINK
REL="HOME"
TITLE="SDL Library Documentation"
HREF="index.html"><LINK
REL="UP"
TITLE="Events"
HREF="event.html"><LINK
REL="PREVIOUS"
TITLE="SDLKey"
HREF="sdlkey.html"><LINK
REL="NEXT"
TITLE="SDL_PumpEvents"
HREF="sdlpumpevents.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFF8DC"
TEXT="#000000"
LINK="#0000ee"
VLINK="#551a8b"
ALINK="#ff0000"
><DIV
CLASS="NAVHEADER"
><TABLE
Feb 10, 2004
Feb 10, 2004
31
SUMMARY="Header navigation table"
Apr 26, 2001
Apr 26, 2001
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>SDL Library Documentation</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="sdlkey.html"
Feb 10, 2004
Feb 10, 2004
49
ACCESSKEY="P"
Apr 26, 2001
Apr 26, 2001
50
51
52
53
54
55
56
57
58
59
60
61
62
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 8. Events</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="sdlpumpevents.html"
Feb 10, 2004
Feb 10, 2004
63
ACCESSKEY="N"
Apr 26, 2001
Apr 26, 2001
64
65
66
67
68
69
70
71
72
73
74
75
76
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="EVENTFUNCTIONS"
Feb 10, 2004
Feb 10, 2004
77
78
></A
>Event Functions.</H1
Apr 26, 2001
Apr 26, 2001
79
80
81
82
83
84
85
86
87
88
89
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="sdlpumpevents.html"
>SDL_PumpEvents</A
Feb 10, 2004
Feb 10, 2004
90
>&nbsp;--&nbsp;Pumps the event loop, gathering events from the input devices.</DT
Apr 26, 2001
Apr 26, 2001
91
92
93
94
><DT
><A
HREF="sdlpeepevents.html"
>SDL_PeepEvents</A
Feb 10, 2004
Feb 10, 2004
95
>&nbsp;--&nbsp;Checks the event queue for messages and optionally returns them.</DT
Apr 26, 2001
Apr 26, 2001
96
97
98
99
><DT
><A
HREF="sdlpollevent.html"
>SDL_PollEvent</A
Feb 10, 2004
Feb 10, 2004
100
>&nbsp;--&nbsp;Polls for currently pending events.</DT
Apr 26, 2001
Apr 26, 2001
101
102
103
104
><DT
><A
HREF="sdlwaitevent.html"
>SDL_WaitEvent</A
Feb 10, 2004
Feb 10, 2004
105
>&nbsp;--&nbsp;Waits indefinitely for the next available event.</DT
Apr 26, 2001
Apr 26, 2001
106
107
108
109
><DT
><A
HREF="sdlpushevent.html"
>SDL_PushEvent</A
Feb 10, 2004
Feb 10, 2004
110
>&nbsp;--&nbsp;Pushes an event onto the event queue</DT
Apr 26, 2001
Apr 26, 2001
111
112
113
114
><DT
><A
HREF="sdlseteventfilter.html"
>SDL_SetEventFilter</A
Feb 10, 2004
Feb 10, 2004
115
>&nbsp;--&nbsp;Sets up a filter to process all events before they are posted
Apr 26, 2001
Apr 26, 2001
116
117
118
119
120
to the event queue.</DT
><DT
><A
HREF="sdlgeteventfilter.html"
>SDL_GetEventFilter</A
Feb 10, 2004
Feb 10, 2004
121
>&nbsp;--&nbsp;Retrieves a pointer to he event filter</DT
Apr 26, 2001
Apr 26, 2001
122
123
124
125
><DT
><A
HREF="sdleventstate.html"
>SDL_EventState</A
Feb 10, 2004
Feb 10, 2004
126
>&nbsp;--&nbsp;This function allows you to set the state of processing certain events.</DT
Apr 26, 2001
Apr 26, 2001
127
128
129
130
><DT
><A
HREF="sdlgetkeystate.html"
>SDL_GetKeyState</A
Feb 10, 2004
Feb 10, 2004
131
>&nbsp;--&nbsp;Get a snapshot of the current keyboard state</DT
Apr 26, 2001
Apr 26, 2001
132
133
134
135
><DT
><A
HREF="sdlgetmodstate.html"
>SDL_GetModState</A
Feb 10, 2004
Feb 10, 2004
136
>&nbsp;--&nbsp;Get the state of modifier keys.</DT
Apr 26, 2001
Apr 26, 2001
137
138
139
140
><DT
><A
HREF="sdlsetmodstate.html"
>SDL_SetModState</A
Feb 10, 2004
Feb 10, 2004
141
>&nbsp;--&nbsp;Set the current key modifier state</DT
Apr 26, 2001
Apr 26, 2001
142
143
144
145
><DT
><A
HREF="sdlgetkeyname.html"
>SDL_GetKeyName</A
Feb 10, 2004
Feb 10, 2004
146
>&nbsp;--&nbsp;Get the name of an SDL virtual keysym</DT
Apr 26, 2001
Apr 26, 2001
147
148
149
150
><DT
><A
HREF="sdlenableunicode.html"
>SDL_EnableUNICODE</A
Feb 10, 2004
Feb 10, 2004
151
>&nbsp;--&nbsp;Enable UNICODE translation</DT
Apr 26, 2001
Apr 26, 2001
152
153
154
155
><DT
><A
HREF="sdlenablekeyrepeat.html"
>SDL_EnableKeyRepeat</A
Feb 10, 2004
Feb 10, 2004
156
>&nbsp;--&nbsp;Set keyboard repeat rate.</DT
Apr 26, 2001
Apr 26, 2001
157
158
159
160
><DT
><A
HREF="sdlgetmousestate.html"
>SDL_GetMouseState</A
Feb 10, 2004
Feb 10, 2004
161
>&nbsp;--&nbsp;Retrieve the current state of the mouse</DT
Apr 26, 2001
Apr 26, 2001
162
163
164
165
><DT
><A
HREF="sdlgetrelativemousestate.html"
>SDL_GetRelativeMouseState</A
Feb 10, 2004
Feb 10, 2004
166
>&nbsp;--&nbsp;Retrieve the current state of the mouse</DT
Apr 26, 2001
Apr 26, 2001
167
168
169
170
><DT
><A
HREF="sdlgetappstate.html"
>SDL_GetAppState</A
Feb 10, 2004
Feb 10, 2004
171
>&nbsp;--&nbsp;Get the state of the application</DT
Apr 26, 2001
Apr 26, 2001
172
173
174
175
><DT
><A
HREF="sdljoystickeventstate.html"
>SDL_JoystickEventState</A
Feb 10, 2004
Feb 10, 2004
176
>&nbsp;--&nbsp;Enable/disable joystick event polling</DT
Apr 26, 2001
Apr 26, 2001
177
178
></DL
></DIV
Sep 14, 2001
Sep 14, 2001
179
180
181
><DIV
CLASS="INFORMALTABLE"
><A
Feb 10, 2004
Feb 10, 2004
182
NAME="AEN5312"
Sep 14, 2001
Sep 14, 2001
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
></A
><P
></P
><TABLE
BORDER="0"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="sdlpumpevents.html"
>SDL_PumpEvents</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>Pumps the event loop, gathering events from the input devices</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="sdlpeepevents.html"
>SDL_PeepEvents</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>Checks the event queue for messages and optionally returns them</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="sdlpollevent.html"
>SDL_PollEvent</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>Polls for currently pending events</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="sdlwaitevent.html"
>SDL_WaitEvent</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>Waits indefinitely for the next available event</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="sdlpushevent.html"
>SDL_PushEvent</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>Pushes an event onto the event queue</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="sdlseteventfilter.html"
>SDL_SetEventFilter</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>Sets up a filter to process all events</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="sdleventstate.html"
>SDL_EventState</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>Allows you to set the state of processing certain events</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="sdlgetkeystate.html"
>SDL_GetKeyState</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>Get a snapshot of the current keyboard state</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="sdlgetmodstate.html"
>SDL_GetModState</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>Get the state of modifier keys</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="sdlsetmodstate.html"
>SDL_SetModState</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>Set the state of modifier keys</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="sdlgetkeyname.html"
>SDL_GetKeyName</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>Get the name of an SDL virtual keysym</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="sdlenableunicode.html"
>SDL_EnableUNICODE</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>Enable UNICODE translation</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="sdlenablekeyrepeat.html"
>SDL_EnableKeyRepeat</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>Set keyboard repeat rate</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="sdlgetmousestate.html"
>SDL_GetMouseState</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>Retrieve the current state of the mouse</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="sdlgetrelativemousestate.html"
>SDL_GetRelativeMouseState</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>Retrieve the current state of the mouse</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="sdlgetappstate.html"
>SDL_GetAppState</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>Get the state of the application</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="sdljoystickeventstate.html"
>SDL_JoystickEventState</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
>Enable/disable joystick event polling</TD
></TR
></TBODY
></TABLE
><P
></P
></DIV
Apr 26, 2001
Apr 26, 2001
416
417
418
419
420
421
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
Feb 10, 2004
Feb 10, 2004
422
SUMMARY="Footer navigation table"
Apr 26, 2001
Apr 26, 2001
423
424
425
426
427
428
429
430
431
432
433
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="sdlkey.html"
Feb 10, 2004
Feb 10, 2004
434
ACCESSKEY="P"
Apr 26, 2001
Apr 26, 2001
435
436
437
438
439
440
441
442
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
Feb 10, 2004
Feb 10, 2004
443
ACCESSKEY="H"
Apr 26, 2001
Apr 26, 2001
444
445
446
447
448
449
450
451
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="sdlpumpevents.html"
Feb 10, 2004
Feb 10, 2004
452
ACCESSKEY="N"
Apr 26, 2001
Apr 26, 2001
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>SDLKey</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="event.html"
Feb 10, 2004
Feb 10, 2004
468
ACCESSKEY="U"
Apr 26, 2001
Apr 26, 2001
469
470
471
472
473
474
475
476
477
478
479
480
481
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>SDL_PumpEvents</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>