Difference between revisions of "cock.convertJoystickHatMode"
(Created page with "Converts literal to numerical joystick hat mode names and vice versa. == Function == === Synopsis === <source lang="Lua">converted = cock.convertJoystickHatMode ( input, forcelit...") |
(→See also) |
||
(One intermediate revision by the same user not shown) | |||
Line 11: | Line 11: | ||
Function will make no change if it was supplied with literal input and forced to output literal value. Same for numerical values. | Function will make no change if it was supplied with literal input and forced to output literal value. Same for numerical values. | ||
== See also == | == See also == | ||
+ | *[[cock.setJoystickHatMode]] | ||
*[[Common Organization of Controls Kit Hat modes]] | *[[Common Organization of Controls Kit Hat modes]] | ||
− | *[[Common Organization of Controls Kit Manual]] | + | *[[parent::Common Organization of Controls Kit Manual]] |
+ | [[Category:Functions]] | ||
+ | *[[Common Organization of Controls Kit]] | ||
+ | |||
+ | {{#set:Description=Converts hat mode.}} |
Latest revision as of 18:20, 2 September 2013
Converts literal to numerical joystick hat mode names and vice versa.
Function
Synopsis
converted = cock.convertJoystickHatMode ( input, forceliteral )
Arguments
number input
- Hat mode, numerical or literal.
boolean forceliteral
- Optional. Forces literal ("true") or numerical ("false") output. Will perform conversion regardless if not provided.
Returns
string converted
- Converted joystick hat mode.
Remarks
Function will make no change if it was supplied with literal input and forced to output literal value. Same for numerical values.
See also
- cock.setJoystickHatMode
- Common Organization of Controls Kit Hat modes
- Common Organization of Controls Kit Manual
- Common Organization of Controls Kit