SDL_GetNumJoystickBalls

Get the number of trackballs on a joystick.

Joystick trackballs have only relative motion events associated with them and their state cannot be polled.

Most joysticks do not have trackballs.

extern (C) nothrow @nogc extern
int
SDL_GetNumJoystickBalls

Parameters

joystick SDL_Joystick*

an SDL_Joystick structure containing joystick information.

Return Value

Type: int

the number of trackballs on success or -1 on failure; call SDL_GetError() for more information.

See Also

Meta