Difference between revisions of "love.joystick.getAxes"

m (1 revision: Importing from potato (again).)
(Add missing parameter)
Line 1: Line 1:
 
 
Returns the position of each axis.
 
Returns the position of each axis.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
axisDir1, axisDir2, axisDirN = love.joystick.getAxes( )
+
axisDir1, axisDir2, axisDirN = love.joystick.getAxes( joystick )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
None.
+
{{param|number|joystick|The joystick to be checked}}
 
=== Returns ===
 
=== Returns ===
 
{{param|number|axisDir1|Direction of axis1}}
 
{{param|number|axisDir1|Direction of axis1}}

Revision as of 16:35, 13 November 2010

Returns the position of each axis.

Function

Synopsis

axisDir1, axisDir2, axisDirN = love.joystick.getAxes( joystick )

Arguments

number joystick
The joystick to be checked

Returns

number axisDir1
Direction of axis1
number axisDir2
Direction of axis2
number axisDirN
Direction of axisN

See Also