{{newinoldin|[[0.5.0]]|050|[[0.9.0]]|090|type=function|text=It has been moved to [[Joystick:getHat]]}}
Returns the direction of a hat.
== Function ==
=== Synopsis ===
<source lang="lua">
direction = love.joystick.getHat( joystick, hat )
</source>
=== Arguments ===
{{param|number|joystick|The joystick to be checked}}
{{param|number|hat|The hat to be checked}}
=== Returns ===
{{param|JoystickConstant|direction|The direction the hat is pushed}}
== See Also ==
* [[parent::love.joystick]]
[[Category:Functions]]
{{#set:Description=Returns the direction of a hat.}}
{{#set:Since=000}}
== Other Languages ==
{{i18n|love.joystick.getHat}}