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 |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
Gets joystick hat mode. | Gets joystick hat mode. | ||
− | == | + | == Function == |
− | === | + | === Synopsis === |
<source lang="Lua">mode = cock.getJoystickHatMode ( self, joystick, hat )</source> | <source lang="Lua">mode = cock.getJoystickHatMode ( self, joystick, hat )</source> | ||
=== Arguments === | === 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.}} | ||
=== Returns === | === Returns === | ||
− | {{param|number|mode| | + | {{param|number|mode|Hat mode number.}} |
==See also== | ==See also== | ||
*[[cock.setJoystickHatMode]] | *[[cock.setJoystickHatMode]] |
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
- cock.setJoystickHatMode
- 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