Difference between revisions of "Joystick:getAxisCount"

m (moved love.joystick.getAxisCount to Joystick:getAxisCount: function has been moved)
(Moved from love.joystick.getAxisCount)
Line 1: Line 1:
{{newin|[[0.9.0]]|090|type=function|text=It has been renamed from [[love.joystick.getNumAxes]]}}
+
{{newin|[[0.9.0]]|090|type=function|text=It has been moved from [[love.joystick.getNumAxes]]}}
  
 
Returns the number of axes on the joystick.
 
Returns the number of axes on the joystick.
Line 5: Line 5:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
axes = love.joystick.getAxisCount( joystick )
+
axes = Joystick:getAxisCount( )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|number|joystick|The joystick to be checked}}
+
None.
 
=== Returns ===
 
=== Returns ===
{{param|number|axes|The number of axes available}}
+
{{param|number|axes|The number of axes available.}}
 
== See Also ==
 
== See Also ==
* [[parent::love.joystick]]
+
* [[parent::Joystick]]
 +
* [[Joystick:getAxis]]
 +
* [[Joystick:getAxes]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Returns the number of axes on the joystick.}}
 
{{#set:Description=Returns the number of axes on the joystick.}}
 
== Other Languages ==
 
== Other Languages ==
{{i18n|love.joystick.getAxisCount}}
+
{{i18n|Joystick:getAxisCount}}

Revision as of 18:27, 26 August 2013

Available since LÖVE 0.9.0
It has been moved from love.joystick.getNumAxes.


Returns the number of axes on the joystick.

Function

Synopsis

axes = Joystick:getAxisCount( )

Arguments

None.

Returns

number axes
The number of axes available.

See Also

Other Languages