dx, dy = sdl.GetBall(port, ball)
You have to pass the ball index to query in ball
. Ball indices start at index 0.
sdl.GetBall()
will return the difference in the x and y axis position since
the last poll. Note that since trackballs can only return relative motion these
return values are delta values.