XgetBallJoystick()

Returns relative x trackball motion.

Syntax:
variable = XgetBallJoystick( index , ball )

Example: