SYNOPSIS

#include "SDL.h"

int SDL_JoystickNumButtons(SDL_Joystick *joystick);

DESCRIPTION

Return the number of buttons available from a previously opened SDL_Joystick.

RETURN VALUE

Number of buttons.

RELATED TO SDL_JoystickNumButtons…

SDL_JoystickGetButton, SDL_JoystickOpen