comparison docs/html/sdljoyaxisevent.html @ 0:74212992fb08

Initial revision
author Sam Lantinga <slouken@lokigames.com>
date Thu, 26 Apr 2001 16:45:43 +0000
parents
children 55f1f1b3e27d
comparison
equal deleted inserted replaced
-1:000000000000 0:74212992fb08
1 <HTML
2 ><HEAD
3 ><TITLE
4 >SDL_JoyAxisEvent</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="SDL Event Structures."
14 HREF="eventstructures.html"><LINK
15 REL="PREVIOUS"
16 TITLE="SDL_MouseButtonEvent"
17 HREF="sdlmousebuttonevent.html"><LINK
18 REL="NEXT"
19 TITLE="SDL_JoyButtonEvent"
20 HREF="sdljoybuttonevent.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="sdlmousebuttonevent.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="sdljoybuttonevent.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="SDLJOYAXISEVENT"
71 >SDL_JoyAxisEvent</A
72 ></H1
73 ><DIV
74 CLASS="REFNAMEDIV"
75 ><A
76 NAME="AEN3695"
77 ></A
78 ><H2
79 >Name</H2
80 >SDL_JoyAxisEvent&nbsp;--&nbsp;Joystick axis motion event structure</DIV
81 ><DIV
82 CLASS="REFSECT1"
83 ><A
84 NAME="AEN3698"
85 ></A
86 ><H2
87 >Structure Definition</H2
88 ><PRE
89 CLASS="PROGRAMLISTING"
90 >typedef struct{
91 Uint8 type;
92 Uint8 which;
93 Uint8 axis;
94 Sint16 value;
95 } SDL_JoyAxisEvent;</PRE
96 ></DIV
97 ><DIV
98 CLASS="REFSECT1"
99 ><A
100 NAME="AEN3701"
101 ></A
102 ><H2
103 >Structure Data</H2
104 ><DIV
105 CLASS="INFORMALTABLE"
106 ><A
107 NAME="AEN3703"
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_JOYAXISMOTION</TT
131 ></TD
132 ></TR
133 ><TR
134 ><TD
135 ALIGN="LEFT"
136 VALIGN="TOP"
137 ><TT
138 CLASS="STRUCTFIELD"
139 ><I
140 >which</I
141 ></TT
142 ></TD
143 ><TD
144 ALIGN="LEFT"
145 VALIGN="TOP"
146 >Joystick device index</TD
147 ></TR
148 ><TR
149 ><TD
150 ALIGN="LEFT"
151 VALIGN="TOP"
152 ><TT
153 CLASS="STRUCTFIELD"
154 ><I
155 >axis</I
156 ></TT
157 ></TD
158 ><TD
159 ALIGN="LEFT"
160 VALIGN="TOP"
161 >Joystick axis index</TD
162 ></TR
163 ><TR
164 ><TD
165 ALIGN="LEFT"
166 VALIGN="TOP"
167 ><TT
168 CLASS="STRUCTFIELD"
169 ><I
170 >value</I
171 ></TT
172 ></TD
173 ><TD
174 ALIGN="LEFT"
175 VALIGN="TOP"
176 >Axis value (range: -32768 to 32767)</TD
177 ></TR
178 ></TBODY
179 ></TABLE
180 ><P
181 ></P
182 ></DIV
183 ></DIV
184 ><DIV
185 CLASS="REFSECT1"
186 ><A
187 NAME="AEN3723"
188 ></A
189 ><H2
190 >Description</H2
191 ><P
192 ><SPAN
193 CLASS="STRUCTNAME"
194 >SDL_JoyAxisEvent</SPAN
195 > is a member of the <A
196 HREF="sdlevent.html"
197 ><SPAN
198 CLASS="STRUCTNAME"
199 >SDL_Event</SPAN
200 ></A
201 > union and is used when an event of type <TT
202 CLASS="LITERAL"
203 >SDL_JOYAXISMOTION</TT
204 > is reported.</P
205 ><P
206 >A <TT
207 CLASS="LITERAL"
208 >SDL_JOYAXISMOTION</TT
209 > event occurs when ever a user moves an axis on the joystick. The field <TT
210 CLASS="STRUCTFIELD"
211 ><I
212 >which</I
213 ></TT
214 > is the index of the joystick that reported the event and <TT
215 CLASS="STRUCTFIELD"
216 ><I
217 >axis</I
218 ></TT
219 > is the index of the axis (for a more detailed explaination see the <A
220 HREF="joystick.html"
221 >Joystick section</A
222 >). <TT
223 CLASS="STRUCTFIELD"
224 ><I
225 >value</I
226 ></TT
227 > is the current position of the axis.</P
228 ></DIV
229 ><DIV
230 CLASS="REFSECT1"
231 ><A
232 NAME="AEN3736"
233 ></A
234 ><H2
235 >See Also</H2
236 ><P
237 ><A
238 HREF="sdlevent.html"
239 ><SPAN
240 CLASS="STRUCTNAME"
241 >SDL_Event</SPAN
242 ></A
243 >,
244 <A
245 HREF="joystick.html"
246 >Joystick Functions</A
247 >,
248 <A
249 HREF="sdljoystickeventstate.html"
250 ><TT
251 CLASS="FUNCTION"
252 >SDL_JoystickEventState</TT
253 ></A
254 >,
255 <A
256 HREF="sdljoystickgetaxis.html"
257 ><TT
258 CLASS="FUNCTION"
259 >SDL_JoystickGetAxis</TT
260 ></A
261 ></P
262 ></DIV
263 ><DIV
264 CLASS="NAVFOOTER"
265 ><HR
266 ALIGN="LEFT"
267 WIDTH="100%"><TABLE
268 WIDTH="100%"
269 BORDER="0"
270 CELLPADDING="0"
271 CELLSPACING="0"
272 ><TR
273 ><TD
274 WIDTH="33%"
275 ALIGN="left"
276 VALIGN="top"
277 ><A
278 HREF="sdlmousebuttonevent.html"
279 >Prev</A
280 ></TD
281 ><TD
282 WIDTH="34%"
283 ALIGN="center"
284 VALIGN="top"
285 ><A
286 HREF="index.html"
287 >Home</A
288 ></TD
289 ><TD
290 WIDTH="33%"
291 ALIGN="right"
292 VALIGN="top"
293 ><A
294 HREF="sdljoybuttonevent.html"
295 >Next</A
296 ></TD
297 ></TR
298 ><TR
299 ><TD
300 WIDTH="33%"
301 ALIGN="left"
302 VALIGN="top"
303 >SDL_MouseButtonEvent</TD
304 ><TD
305 WIDTH="34%"
306 ALIGN="center"
307 VALIGN="top"
308 ><A
309 HREF="eventstructures.html"
310 >Up</A
311 ></TD
312 ><TD
313 WIDTH="33%"
314 ALIGN="right"
315 VALIGN="top"
316 >SDL_JoyButtonEvent</TD
317 ></TR
318 ></TABLE
319 ></DIV
320 ></BODY
321 ></HTML
322 >