SDL_GetNumJoystickButtons

Get the number of buttons on a joystick.

extern (C) nothrow @nogc extern
int
SDL_GetNumJoystickButtons

Parameters

joystick SDL_Joystick*

an SDL_Joystick structure containing joystick information.

Return Value

Type: int

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

See Also

Meta