Difference between revisions of "cock.convertDevice"

(Created page with "Converts literal to numerical device names and vice versa. == Function == === Synopsis === <source lang="Lua">converted = cock.convertDevice ( input, forceliteral )</source> === ...")
 
 
Line 12: Line 12:
 
== See also ==
 
== See also ==
 
*[[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 device.}}

Latest revision as of 18:21, 2 September 2013

Converts literal to numerical device names and vice versa.

Function

Synopsis

converted = cock.convertDevice ( input, forceliteral )

Arguments

number input
Input device, numerical or literal.
boolean forceliteral
Optional. Forces literal ("true") or numerical ("false") output. Will perform conversion regardless if not provided.

Returns

string converted
Converted input device.

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