Difference between revisions of "love.joystick.getJoystickCount"

m
m (Tweaked description)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{newin|[[0.9.0]]|090|type=function|text=It has been renamed from [[love.joystick.getNumJoysticks]]}}
 
{{newin|[[0.9.0]]|090|type=function|text=It has been renamed from [[love.joystick.getNumJoysticks]]}}
  
Returns how many joysticks are available.
+
Gets the number of connected joysticks.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
joysticks = love.joystick.getJoystickCount( )
+
joystickcount = love.joystick.getJoystickCount( )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
 
None.
 
None.
 
=== Returns ===
 
=== Returns ===
{{param|number|joysticks|The number of joysticks available}}
+
{{param|number|joystickcount|The number of connected joysticks.}}
 
== See Also ==
 
== See Also ==
 
* [[parent::love.joystick]]
 
* [[parent::love.joystick]]
* [[love.joystick.getJoystick]]
+
* [[love.joystick.getJoysticks]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Returns how many joysticks are available.}}
+
{{#set:Description=Gets the number of connected joysticks.}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.joystick.getJoystickCount}}
 
{{i18n|love.joystick.getJoystickCount}}

Latest revision as of 00:39, 27 August 2013

Available since LÖVE 0.9.0
It has been renamed from love.joystick.getNumJoysticks.


Gets the number of connected joysticks.

Function

Synopsis

joystickcount = love.joystick.getJoystickCount( )

Arguments

None.

Returns

number joystickcount
The number of connected joysticks.

See Also

Other Languages