Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
SDL_JoystickGetBall(3)
Edit
PageHistory
Diff
Info
LikePages
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__ ----
One page links to
SDL_JoystickGetBall(3)
:
SDLManPages
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.