5131
clevermous
1
2
>
3
>
4
>SDL_JoyBallEvent
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_JoyHatEvent"
17
HREF="sdljoyhatevent.html">
18
REL="NEXT"
19
TITLE="SDL_ResizeEvent"
20
HREF="sdlresizeevent.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="sdljoyhatevent.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="sdlresizeevent.html"
61
>Next
62
>
63
>
64
>
65
>
66
ALIGN="LEFT"
67
WIDTH="100%">
68
>
69
>
70
NAME="SDLJOYBALLEVENT"
71
>SDL_JoyBallEvent
72
>
73
>
74
CLASS="REFNAMEDIV"
75
>
76
NAME="AEN3963"
77
>
78
>
79
>Name
80
>SDL_JoyBallEvent -- Joystick trackball motion event structure
81
>
82
CLASS="REFSECT1"
83
>
84
NAME="AEN3966"
85
>
86
>
87
>Structure Definition
88
>
89
CLASS="PROGRAMLISTING"
90
>typedef struct{
91
Uint8 type;
92
Uint8 which;
93
Uint8 ball;
94
Sint16 xrel, yrel;
95
} SDL_JoyBallEvent;
96
>
97
>
98
CLASS="REFSECT1"
99
>
100
NAME="AEN3969"
101
>
102
>
103
>Structure Data
104
>
105
CLASS="INFORMALTABLE"
106
>
107
NAME="AEN3971"
108
>
109
>
110
>
111
>
185
>
186
>
187
>
188
>
189
>
190
CLASS="REFSECT1"
191
>
192
NAME="AEN3992"
193
>
194
>
195
>Description
196
>
197
>
198
CLASS="STRUCTNAME"
199
>SDL_JoyBallEvent
200
> is a member of the
201
HREF="sdlevent.html"
202
>
203
CLASS="STRUCTNAME"
204
>SDL_Event
205
>
206
> union and is used when an event of type
207
CLASS="LITERAL"
208
>SDL_JOYBALLMOTION
209
> is reported.
210
>
211
>A
212
CLASS="LITERAL"
213
>SDL_JOYBALLMOTION
214
> event occurs when a user moves a trackball on the joystick. The field
215
CLASS="STRUCTFIELD"
216
>
217
>which
218
>
219
> is the index of the joystick that reported the event and
220
CLASS="STRUCTFIELD"
221
>
222
>ball
223
>
224
> is the index of the trackball (for a more detailed explaination see the
225
HREF="joystick.html"
226
>Joystick section
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
228
CLASS="STRUCTFIELD"
229
>
230
>xrel
231
>
232
> and
233
CLASS="STRUCTFIELD"
234
>
235
>yrel
236
>
237
>.
238
>
239
>
240
CLASS="REFSECT1"
241
>
242
NAME="AEN4006"
243
>
244
>
245
>See Also
246
>
247
>
248
HREF="sdlevent.html"
249
>
250
CLASS="STRUCTNAME"
251
>SDL_Event
252
>
253
>,
254
255
HREF="joystick.html"
256
>Joystick Functions
257
>,
258
259
HREF="sdljoystickeventstate.html"
260
>
261
CLASS="FUNCTION"
262
>SDL_JoystickEventState
263
>
264
>,
265
266
HREF="sdljoystickgetball.html"
267
>
268
CLASS="FUNCTION"
269
>SDL_JoystickGetBall
270
>
271
>
272
>
273
>
274
CLASS="NAVFOOTER"
275
>
276
ALIGN="LEFT"
277
WIDTH="100%">
329
>
330
>
331
>
332
>