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

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