Difference between revisions of "cock.getJoystickHatMode"

m
m
 
Line 1: Line 1:
 
Gets joystick hat mode.
 
Gets joystick hat mode.
== Synopsis ==
+
== Function ==
=== Function ===
+
=== Synopsis ===
 
<source lang="Lua">mode = cock.getJoystickHatMode ( self, joystick, hat )</source>
 
<source lang="Lua">mode = cock.getJoystickHatMode ( self, joystick, hat )</source>
 
=== Arguments ===
 
=== Arguments ===

Latest revision as of 15:03, 2 September 2013

Gets joystick hat mode.

Function

Synopsis

mode = cock.getJoystickHatMode ( self, joystick, hat )

Arguments

table self
An object to use.
number joystick
Optional. Internal joystick number. Will use 1 if not provided.
string joystick
Optional. Internal joystick name.
number hat
Optional. LÖVE joystick hat. Will use 1 if not provided.
string hat
Optional. Hat name.

Returns

number mode
Hat mode number.

See also