{{newinoldin|[[0.5.0]]|050|[[0.9.0]]|090|type=function}}

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