Difference between revisions of "cock.convertJoystick"
(Created page with "Converts literal to numerical internal joystick names and vice versa. == Function == === Synopsis === <source lang="Lua">converted = cock.convertJoystick ( self, input, forcelite...") |
m |
||
Line 15: | Line 15: | ||
*[[Common Organization of Controls Kit Fields]] | *[[Common Organization of Controls Kit Fields]] | ||
*[[Common Organization of Controls Kit Input devices]] | *[[Common Organization of Controls Kit Input devices]] | ||
− | *[[Common Organization of Controls Kit Manual]] | + | *[[parent::Common Organization of Controls Kit Manual]] |
+ | [[Category:Functions]] | ||
+ | *[[Common Organization of Controls Kit]] | ||
+ | |||
+ | {{#set:Description=Converts joystick.}} |
Latest revision as of 18:19, 2 September 2013
Converts literal to numerical internal joystick names and vice versa.
Function
Synopsis
converted = cock.convertJoystick ( self, input, forceliteral )
Arguments
table self
- An object to use.
number input
- Internal joystick name, numerical or literal.
boolean forceliteral
- Optional. Forces literal ("true") or numerical ("false") output. Will perform conversion regardless if not provided.
Returns
string converted
- Converted internal joystick name.
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.addJoystick
- Common Organization of Controls Kit Fields
- Common Organization of Controls Kit Input devices
- Common Organization of Controls Kit Manual
- Common Organization of Controls Kit