{{newin|[[0.9.0]]|090|type=callback}}
Called when a joystick hat direction changes.
== Function ==
=== Synopsis ===
<source lang="lua">
love.joystickhat( joystick, hat, direction )
</source>
=== Arguments ===
{{param|Joystick|joystick|The joystick object.}}
{{param|number|hat|The hat number.}}
{{param|JoystickHat|direction|The new hat direction.}}
=== Returns ===
Nothing.
== See Also ==
* [[parent::love]]
[[Category:Callbacks]]
{{#set:Description=Called when a joystick hat direction changes.}}
{{#set:Subcategory=Joystick}}
== Other Languages ==
{{i18n|love.joystickhat}}