Difference between revisions of "cock.getJoystickHatMode"

(Created page with "Gets joystick hat mode. == Synopsis == === Function === <source lang="Lua">mode = cock.getJoystickHatMode ( self, joystick, hat )</source> === Arguments === {{param|table|self|An...")
 
m
Line 10: Line 10:
 
{{param|string|hat|Optional. [[Common Organization of Controls Kit Input keys|Hat]] name.}}
 
{{param|string|hat|Optional. [[Common Organization of Controls Kit Input keys|Hat]] name.}}
 
=== Returns ===
 
=== Returns ===
{{param|number|mode|Optional. Hat mode number.}}
+
{{param|number|mode|Hat mode number.}}
 
==See also==
 
==See also==
 
*[[cock.setJoystickHatMode]]
 
*[[cock.setJoystickHatMode]]

Revision as of 18:27, 1 September 2013

Gets joystick hat mode.

Synopsis

Function

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