Penguin
Blame: SDL_JoystickGetBall(3)
EditPageHistoryDiffInfoLikePages
Annotated edit history of SDL_JoystickGetBall(3) version 2, including all changes. View license author blame.
Rev Author # Line
2 perry 1 SDL_!JoystickGetBall
2 !!!SDL_!JoystickGetBall
1 perry 3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 EXAMPLES
8 SEE ALSO
9 ----
10 !!NAME
11
12
2 perry 13 SDL_!JoystickGetBall- Get relative trackball motion
1 perry 14 !!SYNOPSIS
15
16
17 __#include __
18
19
2 perry 20 __int SDL_!JoystickGetBall__(__SDL_Joystick *joystick,
1 perry 21 int ball, int *dx, int *dy__);
22 !!DESCRIPTION
23
24
25 Get the __ball__ axis change.
26
27
28 Trackballs can only return relative motion since the last
2 perry 29 call to __SDL_!JoystickGetBall__, these motion deltas a
1 perry 30 placed into __dx__ and __dy__.
31 !!RETURN VALUE
32
33
34 Returns __0__ on success or __-1__ on
35 failure
36 !!EXAMPLES
37
38
39 int delta_x, delta_y;
40 SDL_Joystick *joy;
41 .
42 .
43 .
2 perry 44 SDL_!JoystickUpdate();
45 if(SDL_!JoystickGetBall(joy, 0,
1 perry 46 !!SEE ALSO
47
48
2 perry 49 __SDL_!JoystickNumBalls__
1 perry 50 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.