getBall method

Point<int> getBall(
  1. int ball
)

Get the ball axis change since the last poll.

SDL Docs

Implementation

Point<int> getBall(final int ball) {
  sdl.checkReturnValue(
    sdl.sdl.SDL_JoystickGetBall(handle, ball, sdl.xPointer, sdl.yPointer),
  );
  return Point(sdl.xPointer.value, sdl.yPointer.value);
}