Joystick
Functions
SetJoystickSingleAxisSaturation
Definition:
SetJoystickSingleAxisSaturation() -> ?
Description:
Arguments:
?
Returns:
?
Example:
ScanForJoysticks
Definition:
ScanForJoysticks() -> nil
Description:
Detects connected joysticks
Arguments:
None.
GetJoystickSinglePOVValue
Definition:
GetJoystickSinglePOVValue() -> ?
Description:
Arguments:
?
Returns:
?
Example:
GetJoystickSingleAxisRawValue
Definition:
GetJoystickSingleAxisRawValue() -> ?
Description:
Arguments:
?
Returns:
?
Example:
GetJoystickData
Definition:
GetJoystickData(int joyindex) -> table joyinfo
Description:
Arguments:
int joyindex - index of the joystick, starts at 0
Returns:
joyinfo - table with joystick information:
joyinfo[1], joyinfo[2] ... - value of each axis
joyinfo.Name - name of joystick shown in options
joyinfo.AxisNames - table with names of axis
joyinfo.Buttons - table with state of buttons (i get 128 for pressed, 0 for released)
joyinfo.index - joyindex
joyinfo.POV - table with state of POV switches, -1 for center, otherwise angle, (i get 0 for upwards, 90 for right, etc.)
Example:
GetJoystickSingleButtonValue
Definition:
GetJoystickSingleButtonValue() -> ?
Description:
Arguments:
?
Returns:
?
Example:
GetJoystickAxisInvert
Definition:
GetJoystickAxisInvert() -> ?
Description:
Arguments:
?
Returns:
?
Example:
SetJoystickSingleAxisCenter
Definition:
SetJoystickSingleAxisCenter() -> ?
Description:
Arguments:
?
Returns:
?
Example:
GetJoystickSingleAxisInvert
Definition:
GetJoystickSingleAxisInvert() -> ?
Description:
Arguments:
?
Returns:
?
Example:
GetJoystickSingleAxisValue
Definition:
GetJoystickSingleAxisValue() -> ?
Description:
Arguments:
?
Returns:
?
Example:
GetJoystickNumButtons
Definition:
GetJoystickNumButtons() -> ?
Description:
Arguments:
?
Returns:
?
Example:
SetJoystickSingleAxisDeadZone
Definition:
SetJoystickSingleAxisDeadZone() -> ?
Description:
Arguments:
?
Returns:
?
Example:
GetJoystickAxisBind
Definition:
GetJoystickAxisBind() -> ?
Description:
Arguments:
?
Returns:
?
Example:
GetJoystickNumAxes
Definition:
GetJoystickNumAxes() -> ?
Description:
Arguments:
?
Returns:
?
Example:
GetJoystickNumPOVs
Definition:
GetJoystickNumPOVs() -> ?
Description:
Arguments:
?
Returns:
?
Example:
GetJoystickSingleAxisSettings
Definition:
GetJoystickSingleAxisSettings() -> ?
Description:
Arguments:
?
Returns:
?
Example:
GetJoystickSingleAxisCenter
Definition:
GetJoystickSingleAxisCenter() -> ?
Description:
Arguments:
?
Returns:
?
Example:
GetJoystickSingleAxisSaturation
Definition:
GetJoystickSingleAxisSaturation() -> ?
Description:
Arguments:
?
Returns:
?
Example:
GetJoystickSingleAxisDeadZone
Definition:
GetJoystickSingleAxisDeadZone() -> ?
Description:
Arguments:
?
Returns:
?
Example:
SetJoystickSingleAxisInvert
Definition:
SetJoystickSingleAxisInvert() -> ?
Description:
Arguments:
?
Returns:
?
Example: