comparison docs/html/sdljoyballevent.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_JoyBallEvent</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_JoyHatEvent"
17 HREF="sdljoyhatevent.html"><LINK
18 REL="NEXT"
19 TITLE="SDL_ResizeEvent"
20 HREF="sdlresizeevent.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="sdljoyhatevent.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="sdlresizeevent.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="SDLJOYBALLEVENT"
71 >SDL_JoyBallEvent</A
72 ></H1
73 ><DIV
74 CLASS="REFNAMEDIV"
75 ><A
76 NAME="AEN3888"
77 ></A
78 ><H2
79 >Name</H2
80 >SDL_JoyBallEvent&nbsp;--&nbsp;Joystick trackball motion event structure</DIV
81 ><DIV
82 CLASS="REFSECT1"
83 ><A
84 NAME="AEN3891"
85 ></A
86 ><H2
87 >Structure Definition</H2
88 ><PRE
89 CLASS="PROGRAMLISTING"
90 >typedef struct{
91 Uint8 type;
92 Uint8 which;
93 Uint8 ball;
94 Sint16 xrel, yrel;
95 } SDL_JoyBallEvent;</PRE
96 ></DIV
97 ><DIV
98 CLASS="REFSECT1"
99 ><A
100 NAME="AEN3894"
101 ></A
102 ><H2
103 >Structure Data</H2
104 ><DIV
105 CLASS="INFORMALTABLE"
106 ><A
107 NAME="AEN3896"
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_JOYBALLMOTION</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 >ball</I
156 ></TT
157 ></TD
158 ><TD
159 ALIGN="LEFT"
160 VALIGN="TOP"
161 >Joystick trackball index</TD
162 ></TR
163 ><TR
164 ><TD
165 ALIGN="LEFT"
166 VALIGN="TOP"
167 ><TT
168 CLASS="STRUCTFIELD"
169 ><I
170 >xrel</I
171 ></TT
172 >, <TT
173 CLASS="STRUCTFIELD"
174 ><I
175 >yrel</I
176 ></TT
177 ></TD
178 ><TD
179 ALIGN="LEFT"
180 VALIGN="TOP"
181 >The relative motion in the X/Y direction</TD
182 ></TR
183 ></TBODY
184 ></TABLE
185 ><P
186 ></P
187 ></DIV
188 ></DIV
189 ><DIV
190 CLASS="REFSECT1"
191 ><A
192 NAME="AEN3917"
193 ></A
194 ><H2
195 >Description</H2
196 ><P
197 ><SPAN
198 CLASS="STRUCTNAME"
199 >SDL_JoyBallEvent</SPAN
200 > is a member of the <A
201 HREF="sdlevent.html"
202 ><SPAN
203 CLASS="STRUCTNAME"
204 >SDL_Event</SPAN
205 ></A
206 > union and is used when an event of type <TT
207 CLASS="LITERAL"
208 >SDL_JOYBALLMOTION</TT
209 > is reported.</P
210 ><P
211 >A <TT
212 CLASS="LITERAL"
213 >SDL_JOYBALLMOTION</TT
214 > event occurs when a user moves a trackball on the joystick. The field <TT
215 CLASS="STRUCTFIELD"
216 ><I
217 >which</I
218 ></TT
219 > is the index of the joystick that reported the event and <TT
220 CLASS="STRUCTFIELD"
221 ><I
222 >ball</I
223 ></TT
224 > is the index of the trackball (for a more detailed explaination see the <A
225 HREF="joystick.html"
226 >Joystick section</A
227 >). Trackballs only return relative motion, this is the change in position on the ball since it was last polled (last cycle of the event loop) and it is stored in <TT
228 CLASS="STRUCTFIELD"
229 ><I
230 >xrel</I
231 ></TT
232 > and <TT
233 CLASS="STRUCTFIELD"
234 ><I
235 >yrel</I
236 ></TT
237 >.</P
238 ></DIV
239 ><DIV
240 CLASS="REFSECT1"
241 ><A
242 NAME="AEN3931"
243 ></A
244 ><H2
245 >See Also</H2
246 ><P
247 ><A
248 HREF="sdlevent.html"
249 ><SPAN
250 CLASS="STRUCTNAME"
251 >SDL_Event</SPAN
252 ></A
253 >,
254 <A
255 HREF="joystick.html"
256 >Joystick Functions</A
257 >,
258 <A
259 HREF="sdljoystickeventstate.html"
260 ><TT
261 CLASS="FUNCTION"
262 >SDL_JoystickEventState</TT
263 ></A
264 >,
265 <A
266 HREF="sdljoystickgetball.html"
267 ><TT
268 CLASS="FUNCTION"
269 >SDL_JoystickGetBall</TT
270 ></A
271 ></P
272 ></DIV
273 ><DIV
274 CLASS="NAVFOOTER"
275 ><HR
276 ALIGN="LEFT"
277 WIDTH="100%"><TABLE
278 WIDTH="100%"
279 BORDER="0"
280 CELLPADDING="0"
281 CELLSPACING="0"
282 ><TR
283 ><TD
284 WIDTH="33%"
285 ALIGN="left"
286 VALIGN="top"
287 ><A
288 HREF="sdljoyhatevent.html"
289 >Prev</A
290 ></TD
291 ><TD
292 WIDTH="34%"
293 ALIGN="center"
294 VALIGN="top"
295 ><A
296 HREF="index.html"
297 >Home</A
298 ></TD
299 ><TD
300 WIDTH="33%"
301 ALIGN="right"
302 VALIGN="top"
303 ><A
304 HREF="sdlresizeevent.html"
305 >Next</A
306 ></TD
307 ></TR
308 ><TR
309 ><TD
310 WIDTH="33%"
311 ALIGN="left"
312 VALIGN="top"
313 >SDL_JoyHatEvent</TD
314 ><TD
315 WIDTH="34%"
316 ALIGN="center"
317 VALIGN="top"
318 ><A
319 HREF="eventstructures.html"
320 >Up</A
321 ></TD
322 ><TD
323 WIDTH="33%"
324 ALIGN="right"
325 VALIGN="top"
326 >SDL_ResizeEvent</TD
327 ></TR
328 ></TABLE
329 ></DIV
330 ></BODY
331 ></HTML
332 >