Difference between revisions of "love.joystick.getNumHats"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 
+
Returns the number of hats on the joystick.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 13: Line 13:
 
* [[parent::love.joystick]]
 
* [[parent::love.joystick]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Returns the number of hats on the joystick.}}

Revision as of 16:17, 14 February 2010

Returns the number of hats on the joystick.

Function

Synopsis

hats = love.joystick.getNumHats( joystick )

Arguments

number joystick
The joystick to be checked

Returns

number hats
How many hats the joystick has

See Also