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