Penguin
Note: You are viewing an old revision of this page. View the current version.

SDL_JoystickGetBall?

SDL_JoystickGetBall?

NAME SYNOPSIS DESCRIPTION RETURN VALUE EXAMPLES SEE ALSO


NAME

SDL_JoystickGetBall?- Get relative trackball motion

SYNOPSIS

#include

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,

SEE ALSO

SDL_JoystickNumBalls?


This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.