5131 |
clevermous |
1 |
|
|
|
2 |
> |
|
|
3 |
> |
|
|
4 |
>SDL_JoyButtonEvent |
|
|
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="SDL Event Structures." |
|
|
14 |
HREF="eventstructures.html"> |
|
|
15 |
REL="PREVIOUS" |
|
|
16 |
TITLE="SDL_JoyAxisEvent" |
|
|
17 |
HREF="sdljoyaxisevent.html"> |
|
|
18 |
REL="NEXT" |
|
|
19 |
TITLE="SDL_JoyHatEvent" |
|
|
20 |
HREF="sdljoyhatevent.html"> |
|
|
21 |
> |
|
|
22 |
CLASS="REFENTRY" |
|
|
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="sdljoyaxisevent.html" |
|
|
48 |
>Prev |
|
|
49 |
> |
|
|
50 |
> |
|
|
|
51 |
WIDTH="80%" |
|
|
52 |
ALIGN="center" |
|
|
53 |
VALIGN="bottom" |
|
|
54 |
> |
|
|
55 |
> |
|
|
|
56 |
WIDTH="10%" |
|
|
57 |
ALIGN="right" |
|
|
58 |
VALIGN="bottom" |
|
|
59 |
> |
|
|
60 |
HREF="sdljoyhatevent.html" |
|
|
61 |
>Next |
|
|
62 |
> |
|
|
63 |
> | |
|
|
64 |
> | |
|
|
65 |
>
|
|
|
66 |
ALIGN="LEFT" |
|
|
67 |
WIDTH="100%"> |
|
|
68 |
> |
|
|
69 |
> |
|
|
70 |
NAME="SDLJOYBUTTONEVENT" |
|
|
71 |
>SDL_JoyButtonEvent |
|
|
72 |
> |
|
|
73 |
> |
|
|
74 |
CLASS="REFNAMEDIV" |
|
|
75 |
> |
|
|
76 |
NAME="AEN3825" |
|
|
77 |
> |
|
|
78 |
> |
|
|
79 |
>Name |
|
|
80 |
>SDL_JoyButtonEvent -- Joystick button event structure |
|
|
81 |
> |
|
|
82 |
CLASS="REFSECT1" |
|
|
83 |
> |
|
|
84 |
NAME="AEN3828" |
|
|
85 |
> |
|
|
86 |
> |
|
|
87 |
>Structure Definition |
|
|
88 |
> |
|
|
89 |
CLASS="PROGRAMLISTING" |
|
|
90 |
>typedef struct{ |
|
|
91 |
Uint8 type; |
|
|
92 |
Uint8 which; |
|
|
93 |
Uint8 button; |
|
|
94 |
Uint8 state; |
|
|
95 |
} SDL_JoyButtonEvent; |
|
|
96 |
> |
|
|
97 |
> |
|
|
98 |
CLASS="REFSECT1" |
|
|
99 |
> |
|
|
100 |
NAME="AEN3831" |
|
|
101 |
> |
|
|
102 |
> |
|
|
103 |
>Structure Data |
|
|
104 |
> |
|
|
105 |
CLASS="INFORMALTABLE" |
|
|
106 |
> |
|
|
107 |
NAME="AEN3833" |
|
|
108 |
> |
|
|
109 |
> |
|
|
110 |
> |
|
|
111 |
> |
|
|
189 |
> |
|
|
190 |
> |
|
|
191 |
> |
|
|
192 |
> |
|
|
193 |
> |
|
|
194 |
CLASS="REFSECT1" |
|
|
195 |
> |
|
|
196 |
NAME="AEN3856" |
|
|
197 |
> |
|
|
198 |
> |
|
|
199 |
>Description |
|
|
200 |
> |
|
|
201 |
> |
|
|
202 |
CLASS="STRUCTNAME" |
|
|
203 |
>SDL_JoyButtonEvent |
|
|
204 |
> is a member of the |
|
|
205 |
HREF="sdlevent.html" |
|
|
206 |
> |
|
|
207 |
CLASS="STRUCTNAME" |
|
|
208 |
>SDL_Event |
|
|
209 |
> |
|
|
210 |
> union and is used when an event of type |
|
|
211 |
CLASS="LITERAL" |
|
|
212 |
>SDL_JOYBUTTONDOWN |
|
|
213 |
> or |
|
|
214 |
CLASS="LITERAL" |
|
|
215 |
>SDL_JOYBUTTONUP |
|
|
216 |
> is reported. |
|
|
217 |
> |
|
|
218 |
>A |
|
|
219 |
CLASS="LITERAL" |
|
|
220 |
>SDL_JOYBUTTONDOWN |
|
|
221 |
> or |
|
|
222 |
CLASS="LITERAL" |
|
|
223 |
>SDL_JOYBUTTONUP |
|
|
224 |
> event occurs when ever a user presses or releases a button on a joystick. The field |
|
|
225 |
CLASS="STRUCTFIELD" |
|
|
226 |
> |
|
|
227 |
>which |
|
|
228 |
> |
|
|
229 |
> is the index of the joystick that reported the event and |
|
|
230 |
CLASS="STRUCTFIELD" |
|
|
231 |
> |
|
|
232 |
>button |
|
|
233 |
> |
|
|
234 |
> is the index of the button (for a more detailed explaination see the |
|
|
235 |
HREF="joystick.html" |
|
|
236 |
>Joystick section |
|
|
237 |
>). |
|
|
238 |
CLASS="STRUCTFIELD" |
|
|
239 |
> |
|
|
240 |
>state |
|
|
241 |
> |
|
|
242 |
> is the current state or the button which is either |
|
|
243 |
CLASS="LITERAL" |
|
|
244 |
>SDL_PRESSED |
|
|
245 |
> or |
|
|
246 |
CLASS="LITERAL" |
|
|
247 |
>SDL_RELEASED |
|
|
248 |
>. |
|
|
249 |
> |
|
|
250 |
> |
|
|
251 |
CLASS="REFSECT1" |
|
|
252 |
> |
|
|
253 |
NAME="AEN3873" |
|
|
254 |
> |
|
|
255 |
> |
|
|
256 |
>See Also |
|
|
257 |
> |
|
|
258 |
> |
|
|
259 |
HREF="sdlevent.html" |
|
|
260 |
> |
|
|
261 |
CLASS="STRUCTNAME" |
|
|
262 |
>SDL_Event |
|
|
263 |
> |
|
|
264 |
>, |
|
|
265 |
|
|
|
266 |
HREF="joystick.html" |
|
|
267 |
>Joystick Functions |
|
|
268 |
>, |
|
|
269 |
|
|
|
270 |
HREF="sdljoystickeventstate.html" |
|
|
271 |
> |
|
|
272 |
CLASS="FUNCTION" |
|
|
273 |
>SDL_JoystickEventState |
|
|
274 |
> |
|
|
275 |
>, |
|
|
276 |
|
|
|
277 |
HREF="sdljoystickgetbutton.html" |
|
|
278 |
> |
|
|
279 |
CLASS="FUNCTION" |
|
|
280 |
>SDL_JoystickGetButton |
|
|
281 |
> |
|
|
282 |
> |
|
|
283 |
> |
|
|
284 |
> |
|
|
285 |
CLASS="NAVFOOTER" |
|
|
286 |
>
|
|
|
287 |
ALIGN="LEFT" |
|
|
288 |
WIDTH="100%"> |
|
|
340 |
> |
|
|
341 |
> |
|
|
342 |
> |
|
|
343 |
> |