cock.convertJoystick

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


Personal tools