Home | History | Annotate | Download | only in joystick

Lines Matching refs:ball

305  * Get the ball axis change since the last poll
307 int SDL_JoystickGetBall(SDL_Joystick *joystick, int ball, int *dx, int *dy)
316 if ( ball < joystick->nballs ) {
318 *dx = joystick->balls[ball].dx;
321 *dy = joystick->balls[ball].dy;
323 joystick->balls[ball].dx = 0;
324 joystick->balls[ball].dy = 0;
492 int SDL_PrivateJoystickBall(SDL_Joystick *joystick, Uint8 ball,
498 if (ball >= joystick->nballs) {
503 joystick->balls[ball].dx += xrel;
504 joystick->balls[ball].dy += yrel;
513 event.jball.ball = ball;