Method SDL.Joystick()->num_buttons() class SDL.Joystick Method num_buttons int num_buttons() Returns The number of buttons available for this joystick.