{{newin|[[0.9.0]]|090|type=function|text=It has been moved from [[love.joystick.getAxis]]}}
Gets the direction of an axis.
== Function ==
=== Synopsis ===
<source lang="lua">
direction = Joystick:getAxis( axis )
</source>
=== Arguments ===
{{param|number|axis|The index of the axis to be checked.}}
=== Returns ===
{{param|number|direction|Current value of the axis.}}
== See Also ==
* [[parent::Joystick]]
* [[Joystick:getAxes]]
* [[Joystick:getAxisCount]]
[[Category:Functions]]
{{#set:Description=Gets the direction of an axis.}}
== Other Languages ==
{{i18n|Joystick:getAxis}}