Annotated edit history of
SDL_JoystickGetBall(3) version 2 showing authors affecting page license.
View with all changes included.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
SDL_!JoystickGetBall |
|
|
2 |
!!!SDL_!JoystickGetBall |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
RETURN VALUE |
|
|
7 |
EXAMPLES |
|
|
8 |
SEE ALSO |
|
|
9 |
---- |
|
|
10 |
!!NAME |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
SDL_!JoystickGetBall- Get relative trackball motion |
|
|
14 |
!!SYNOPSIS |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
__#include __ |
|
|
18 |
|
|
|
19 |
|
|
|
20 |
__int SDL_!JoystickGetBall__(__SDL_Joystick *joystick, |
|
|
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 |
|
|
29 |
call to __SDL_!JoystickGetBall__, these motion deltas a |
|
|
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 |
. |
|
|
44 |
SDL_!JoystickUpdate(); |
|
|
45 |
if(SDL_!JoystickGetBall(joy, 0, |
|
|
46 |
!!SEE ALSO |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
__SDL_!JoystickNumBalls__ |
|
|
50 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.