{{newin|[[0.9.0]]|090|type=function|text=It has been moved from [[love.joystick.getNumButtons]]}}
Gets the number of buttons on the joystick.
== Function ==
=== Synopsis ===
<source lang="lua">
buttons = Joystick:getButtonCount( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|buttons|The number of buttons available.}}
== See Also ==
* [[parent::Joystick]]
* [[Joystick:isDown]]
[[Category:Functions]]
{{#set:Description=Gets the number of buttons on the joystick.}}
== Other Languages ==
{{i18n|Joystick:getButtonCount}}