Mercurial > sdl-ios-xcode
annotate docs/html/sdljoybuttonevent.html @ 628:e561e8752d33
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 29 May 2003 04:29:13 +0000 |
parents | e5bc29de3f0a |
children | 355632dca928 |
rev | line source |
---|---|
0 | 1 <HTML |
2 ><HEAD | |
3 ><TITLE | |
4 >SDL_JoyButtonEvent</TITLE | |
5 ><META | |
6 NAME="GENERATOR" | |
55
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.64 |
0 | 8 "><LINK |
9 REL="HOME" | |
10 TITLE="SDL Library Documentation" | |
11 HREF="index.html"><LINK | |
12 REL="UP" | |
13 TITLE="SDL Event Structures." | |
14 HREF="eventstructures.html"><LINK | |
15 REL="PREVIOUS" | |
16 TITLE="SDL_JoyAxisEvent" | |
17 HREF="sdljoyaxisevent.html"><LINK | |
18 REL="NEXT" | |
19 TITLE="SDL_JoyHatEvent" | |
20 HREF="sdljoyhatevent.html"></HEAD | |
21 ><BODY | |
22 CLASS="REFENTRY" | |
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="sdljoyaxisevent.html" | |
48 >Prev</A | |
49 ></TD | |
50 ><TD | |
51 WIDTH="80%" | |
52 ALIGN="center" | |
53 VALIGN="bottom" | |
54 ></TD | |
55 ><TD | |
56 WIDTH="10%" | |
57 ALIGN="right" | |
58 VALIGN="bottom" | |
59 ><A | |
60 HREF="sdljoyhatevent.html" | |
61 >Next</A | |
62 ></TD | |
63 ></TR | |
64 ></TABLE | |
65 ><HR | |
66 ALIGN="LEFT" | |
67 WIDTH="100%"></DIV | |
68 ><H1 | |
69 ><A | |
70 NAME="SDLJOYBUTTONEVENT" | |
71 >SDL_JoyButtonEvent</A | |
72 ></H1 | |
73 ><DIV | |
74 CLASS="REFNAMEDIV" | |
75 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
76 NAME="AEN3874" |
0 | 77 ></A |
78 ><H2 | |
79 >Name</H2 | |
80 >SDL_JoyButtonEvent -- Joystick button event structure</DIV | |
81 ><DIV | |
82 CLASS="REFSECT1" | |
83 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
84 NAME="AEN3877" |
0 | 85 ></A |
86 ><H2 | |
87 >Structure Definition</H2 | |
88 ><PRE | |
89 CLASS="PROGRAMLISTING" | |
90 >typedef struct{ | |
91 Uint8 type; | |
92 Uint8 which; | |
93 Uint8 button; | |
94 Uint8 state; | |
95 } SDL_JoyButtonEvent;</PRE | |
96 ></DIV | |
97 ><DIV | |
98 CLASS="REFSECT1" | |
99 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
100 NAME="AEN3880" |
0 | 101 ></A |
102 ><H2 | |
103 >Structure Data</H2 | |
104 ><DIV | |
105 CLASS="INFORMALTABLE" | |
106 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
107 NAME="AEN3882" |
0 | 108 ></A |
109 ><P | |
110 ></P | |
111 ><TABLE | |
112 BORDER="0" | |
113 CLASS="CALSTABLE" | |
114 ><TBODY | |
115 ><TR | |
116 ><TD | |
117 ALIGN="LEFT" | |
118 VALIGN="TOP" | |
119 ><TT | |
120 CLASS="STRUCTFIELD" | |
121 ><I | |
122 >type</I | |
123 ></TT | |
124 ></TD | |
125 ><TD | |
126 ALIGN="LEFT" | |
127 VALIGN="TOP" | |
128 ><TT | |
129 CLASS="LITERAL" | |
130 >SDL_JOYBUTTONDOWN</TT | |
131 > or <TT | |
132 CLASS="LITERAL" | |
133 >SDL_JOYBUTTONUP</TT | |
134 ></TD | |
135 ></TR | |
136 ><TR | |
137 ><TD | |
138 ALIGN="LEFT" | |
139 VALIGN="TOP" | |
140 ><TT | |
141 CLASS="STRUCTFIELD" | |
142 ><I | |
143 >which</I | |
144 ></TT | |
145 ></TD | |
146 ><TD | |
147 ALIGN="LEFT" | |
148 VALIGN="TOP" | |
149 >Joystick device index</TD | |
150 ></TR | |
151 ><TR | |
152 ><TD | |
153 ALIGN="LEFT" | |
154 VALIGN="TOP" | |
155 ><TT | |
156 CLASS="STRUCTFIELD" | |
157 ><I | |
158 >button</I | |
159 ></TT | |
160 ></TD | |
161 ><TD | |
162 ALIGN="LEFT" | |
163 VALIGN="TOP" | |
164 >Joystick button index</TD | |
165 ></TR | |
166 ><TR | |
167 ><TD | |
168 ALIGN="LEFT" | |
169 VALIGN="TOP" | |
170 ><TT | |
171 CLASS="STRUCTFIELD" | |
172 ><I | |
173 >state</I | |
174 ></TT | |
175 ></TD | |
176 ><TD | |
177 ALIGN="LEFT" | |
178 VALIGN="TOP" | |
179 ><TT | |
180 CLASS="LITERAL" | |
181 >SDL_PRESSED</TT | |
182 > or <TT | |
183 CLASS="LITERAL" | |
184 >SDL_RELEASED</TT | |
185 ></TD | |
186 ></TR | |
187 ></TBODY | |
188 ></TABLE | |
189 ><P | |
190 ></P | |
191 ></DIV | |
192 ></DIV | |
193 ><DIV | |
194 CLASS="REFSECT1" | |
195 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
196 NAME="AEN3905" |
0 | 197 ></A |
198 ><H2 | |
199 >Description</H2 | |
200 ><P | |
201 ><SPAN | |
202 CLASS="STRUCTNAME" | |
203 >SDL_JoyButtonEvent</SPAN | |
204 > is a member of the <A | |
205 HREF="sdlevent.html" | |
206 ><SPAN | |
207 CLASS="STRUCTNAME" | |
208 >SDL_Event</SPAN | |
209 ></A | |
210 > union and is used when an event of type <TT | |
211 CLASS="LITERAL" | |
212 >SDL_JOYBUTTONDOWN</TT | |
213 > or <TT | |
214 CLASS="LITERAL" | |
215 >SDL_JOYBUTTONUP</TT | |
216 > is reported.</P | |
217 ><P | |
218 >A <TT | |
219 CLASS="LITERAL" | |
220 >SDL_JOYBUTTONDOWN</TT | |
221 > or <TT | |
222 CLASS="LITERAL" | |
223 >SDL_JOYBUTTONUP</TT | |
224 > event occurs when ever a user presses or releases a button on a joystick. The field <TT | |
225 CLASS="STRUCTFIELD" | |
226 ><I | |
227 >which</I | |
228 ></TT | |
229 > is the index of the joystick that reported the event and <TT | |
230 CLASS="STRUCTFIELD" | |
231 ><I | |
232 >button</I | |
233 ></TT | |
234 > is the index of the button (for a more detailed explaination see the <A | |
235 HREF="joystick.html" | |
236 >Joystick section</A | |
237 >). <TT | |
238 CLASS="STRUCTFIELD" | |
239 ><I | |
240 >state</I | |
241 ></TT | |
242 > is the current state or the button which is either <TT | |
243 CLASS="LITERAL" | |
244 >SDL_PRESSED</TT | |
245 > or <TT | |
246 CLASS="LITERAL" | |
247 >SDL_RELEASED</TT | |
248 >.</P | |
249 ></DIV | |
250 ><DIV | |
251 CLASS="REFSECT1" | |
252 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
253 NAME="AEN3922" |
0 | 254 ></A |
255 ><H2 | |
256 >See Also</H2 | |
257 ><P | |
258 ><A | |
259 HREF="sdlevent.html" | |
260 ><SPAN | |
261 CLASS="STRUCTNAME" | |
262 >SDL_Event</SPAN | |
263 ></A | |
264 >, | |
265 <A | |
266 HREF="joystick.html" | |
267 >Joystick Functions</A | |
268 >, | |
269 <A | |
270 HREF="sdljoystickeventstate.html" | |
271 ><TT | |
272 CLASS="FUNCTION" | |
273 >SDL_JoystickEventState</TT | |
274 ></A | |
275 >, | |
276 <A | |
277 HREF="sdljoystickgetbutton.html" | |
278 ><TT | |
279 CLASS="FUNCTION" | |
280 >SDL_JoystickGetButton</TT | |
281 ></A | |
282 ></P | |
283 ></DIV | |
284 ><DIV | |
285 CLASS="NAVFOOTER" | |
286 ><HR | |
287 ALIGN="LEFT" | |
288 WIDTH="100%"><TABLE | |
289 WIDTH="100%" | |
290 BORDER="0" | |
291 CELLPADDING="0" | |
292 CELLSPACING="0" | |
293 ><TR | |
294 ><TD | |
295 WIDTH="33%" | |
296 ALIGN="left" | |
297 VALIGN="top" | |
298 ><A | |
299 HREF="sdljoyaxisevent.html" | |
300 >Prev</A | |
301 ></TD | |
302 ><TD | |
303 WIDTH="34%" | |
304 ALIGN="center" | |
305 VALIGN="top" | |
306 ><A | |
307 HREF="index.html" | |
308 >Home</A | |
309 ></TD | |
310 ><TD | |
311 WIDTH="33%" | |
312 ALIGN="right" | |
313 VALIGN="top" | |
314 ><A | |
315 HREF="sdljoyhatevent.html" | |
316 >Next</A | |
317 ></TD | |
318 ></TR | |
319 ><TR | |
320 ><TD | |
321 WIDTH="33%" | |
322 ALIGN="left" | |
323 VALIGN="top" | |
324 >SDL_JoyAxisEvent</TD | |
325 ><TD | |
326 WIDTH="34%" | |
327 ALIGN="center" | |
328 VALIGN="top" | |
329 ><A | |
330 HREF="eventstructures.html" | |
331 >Up</A | |
332 ></TD | |
333 ><TD | |
334 WIDTH="33%" | |
335 ALIGN="right" | |
336 VALIGN="top" | |
337 >SDL_JoyHatEvent</TD | |
338 ></TR | |
339 ></TABLE | |
340 ></DIV | |
341 ></BODY | |
342 ></HTML | |
343 > |