Difference between revisions of "Joystick:getHatCount"

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

Revision as of 19:08, 26 August 2013

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

Returns the number of hats on the joystick.

Function

Synopsis

hats = Joystick:getHatCount( )

Arguments

None.

Returns

number hats
How many hats the joystick has.

See Also

Other Languages