From 9682c8870b8ff5e4ac2e4c70b759f791c6f38c1f Mon Sep 17 00:00:00 2001 From: Jesse Hall Date: Mon, 9 Jul 2012 11:27:07 -0700 Subject: Import SDL release-1.2.15 Change-Id: I505c4aea24325cad475f217db5589814b4c75dbf --- .../sdl-1.2.15/docs/html/sdljoystickgetball.html | 262 +++++++++++++++++++++ 1 file changed, 262 insertions(+) create mode 100644 distrib/sdl-1.2.15/docs/html/sdljoystickgetball.html (limited to 'distrib/sdl-1.2.15/docs/html/sdljoystickgetball.html') diff --git a/distrib/sdl-1.2.15/docs/html/sdljoystickgetball.html b/distrib/sdl-1.2.15/docs/html/sdljoystickgetball.html new file mode 100644 index 0000000..0da252a --- /dev/null +++ b/distrib/sdl-1.2.15/docs/html/sdljoystickgetball.html @@ -0,0 +1,262 @@ +SDL_JoystickGetBall
SDL Library Documentation
PrevNext

SDL_JoystickGetBall

Name

SDL_JoystickGetBall -- Get relative trackball motion

Synopsis

#include "SDL.h"

int SDL_JoystickGetBall(SDL_Joystick *joystick, int ball, int *dx, int *dy);

Description

Get the ball axis change.

Trackballs can only return relative motion since the last call to SDL_JoystickGetBall, these motion deltas a placed into dx and dy.

Return Value

Returns 0 on success or -1 on failure

Examples

int delta_x, delta_y;
+SDL_Joystick *joy;
+.
+.
+.
+SDL_JoystickUpdate();
+if(SDL_JoystickGetBall(joy, 0, &delta_x, &delta_y)==-1)
+  printf("TrackBall Read Error!\n");
+printf("Trackball Delta- X:%d, Y:%d\n", delta_x, delta_y);

See Also

SDL_JoystickNumBalls


PrevHomeNext
SDL_JoystickGetButtonUpSDL_JoystickClose
\ No newline at end of file -- cgit v1.1