Difference between revisions of "cock.convertAxis"

(Created page with "Converts literal to numerical axis names and vice versa. == Function == === Synopsis === <source lang="Lua">converted = cock.convertAxis ( input, forceliteral )</source> === Argu...")
 
m (See also)
Line 12: Line 12:
 
== See also ==
 
== See also ==
 
*[[cock.convertKey]]
 
*[[cock.convertKey]]
*[[cock.convertAxis]]
 
 
*[[Common Organization of Controls Kit Input keys]]
 
*[[Common Organization of Controls Kit Input keys]]
 
*[[Common Organization of Controls Kit Manual]]
 
*[[Common Organization of Controls Kit Manual]]

Revision as of 18:10, 2 September 2013

Converts literal to numerical axis names and vice versa.

Function

Synopsis

converted = cock.convertAxis ( input, forceliteral )

Arguments

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

Returns

string converted
Converted axis.

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