Penguin
Blame: SDL_JoyBallEvent(3)
EditPageHistoryDiffInfoLikePages
Annotated edit history of SDL_JoyBallEvent(3) version 2 showing authors affecting page license. View with all changes included.
Rev Author # Line
1 perry 1 SDL_!JoyBallEvent
2 !!!SDL_!JoyBallEvent
3 NAME
4 STRUCTURE DEFINITION
5 STRUCTURE DATA
6 DESCRIPTION
7 SEE ALSO
8 ----
9 !!NAME
10
11
12 SDL_!JoyBallEvent- Joystick trackball motion event structure
13 !!STRUCTURE DEFINITION
14
15
16 typedef struct{
17 Uint8 type;
18 Uint8 which;
19 Uint8 ball;
20 Sint16 xrel, yrel;
21 } SDL_!JoyBallEvent;
22 !!STRUCTURE DATA
23
24
25 __type SDL_JOYBALLMOTION__
26
27
28 __which__ Joystick device index
29
30
31 __ball__ Joystick trackball index
32
33
34 __xrel__, __yrel__ The relative motion in the X/Y
35 direction
36 !!DESCRIPTION
37
38
39 __SDL_!JoyBallEvent__ is a member of the __SDL_Event__
40 union and is used when an event of type
41 __SDL_JOYBALLMOTION__ is reported.
42
43
44 A __SDL_JOYBALLMOTION__ event occurs when a user moves a
45 trackball on the joystick. The field __which__ is the
46 index of the joystick that reported the event and
47 __ball__ is the index of the trackball (for a more
48 detailed explaination see the ''Joystick section'').
49 Trackballs only return relative motion, this is the change
50 in position on the ball since it was last polled (last cycle
51 of the event loop) and it is stored in __xrel__ and
52 __yrel__.
53 !!SEE ALSO
54
55
56 __SDL_Event__, ''Joystick Functions'',
57 __SDL_!JoystickEventState__,
58 __SDL_!JoystickGetBall__
59 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.