numButtons property

int numButtons

Get the number of buttons for this joystick.

SDL Docs

Implementation

int get numButtons =>
    sdl.checkReturnValue(sdl.sdl.SDL_JoystickNumButtons(handle));