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