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) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
=== Arguments === | === Arguments === | ||
{{param|table|self|An object to use.}} | {{param|table|self|An object to use.}} | ||
− | {{param|number|joystick|Optional. Internal joystick number. Will use 1 if not provided.}} | + | {{param|number|joystick|Optional. [[Common Organization of Controls Kit Input devices|Internal joystick]] number. Will use 1 if not provided.}} |
{{param|string|joystick|Optional. Internal joystick name.}} | {{param|string|joystick|Optional. Internal joystick name.}} | ||
{{param|number|hat|Optional. LÖVE joystick hat. Will use 1 if not provided.}} | {{param|number|hat|Optional. LÖVE joystick hat. Will use 1 if not provided.}} | ||
{{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 | + | {{param|string|mode|Optional. [[Common Organization of Controls Kit Hat modes|Hat mode]] name.}} |
+ | |||
==See also== | ==See also== | ||
*[[cock.getJoystickHatMode]] | *[[cock.getJoystickHatMode]] |
Latest revision as of 06:43, 3 November 2016
Sets joystick hat mode per hat.
Contents
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
- cock.getJoystickHatMode
- cock.setJoystickDeadzone
- cock.remapJoystickHat
- Common Organization of Controls Kit Hat modes
- Common Organization of Controls Kit Input devices
- Common Organization of Controls Kit Manual
- Common Organization of Controls Kit