{{newinoldin|[[0.5.0]]|050|[[0.9.0]]|090|type=function|text=It has been renamed to [[Joystick:getButtonCount]]}}

Returns the number of buttons on the joystick.
== Function ==
=== Synopsis ===
<source lang="lua">
buttons = love.joystick.getNumButtons( joystick )
</source>
=== Arguments ===
{{param|number|joystick|The joystick to be checked}}
=== Returns ===
{{param|number|buttons|The number of buttons available}}
== See Also ==
* [[parent::love.joystick]]
[[Category:Functions]]
{{#set:Description=Returns the number of buttons on the joystick.}}
{{#set:Since=000}}
== Other Languages ==
{{i18n|love.joystick.getNumButtons}}