Converts literal to numerical joystick hat mode names and vice versa.
converted = cock.convertJoystickHatMode ( input, forceliteral )
number input
boolean forceliteral
string converted
Function will make no change if it was supplied with literal input and forced to output literal value. Same for numerical values.