Difference between revisions of "cock.setJoystickHatMode"

(Created page with "Sets joystick hat mode per hat. == Synopsis == === Function === <source lang="Lua">cock.setJoystickHatMode ( self, joystick, hat, mode )</source> === Arguments === {{param|table|...")
 
m (Arguments)
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.}}
 
{{param|number|mode|Optional. Hat mode number. Will use 1 if not provided.}}
 
{{param|number|mode|Optional. Hat mode number. Will use 1 if not provided.}}
{{param|string|mode|[[Common Organization of Control Kit Hat modes|Hat mode]] name.}}
+
{{param|string|mode|Optional. [[Common Organization of Control Kit Hat modes|Hat mode]] name.}}
 +
 
 
==See also==
 
==See also==
 
*[[cock.getJoystickHatMode]]
 
*[[cock.getJoystickHatMode]]

Revision as of 18:26, 1 September 2013

Sets joystick hat mode per hat.

Synopsis

Function

cock.setJoystickHatMode ( self, joystick, hat, mode )

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.
number mode
Optional. Hat mode number. Will use 1 if not provided.
string mode
Optional. Hat mode name.

See also