Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.50

Description

Description:

Returns the status of the specified VBS Key Actions.

For key assignments, the returned value is normally 1 (but can, in cases of fast keystrokes, also contain other values, so in general it is safer to test for a value that is not equal to 0).

For joystick assignments, the returned axis value is between 0 and 1 (inclusive).

Syntax

Syntax:inputAction action
Parameters:
Return Value:Number - Input device status (see description).

Examples

Examples:
Action assign to key. Returns number>0 if move key is pressed:
_isMoving = (inputAction "MoveForward">0)
Assigned to joystick. Returns number between 0 and 1:
_carThrottle = inputAction "CarForward";

Additional Information

See also: isJoyBtnPressed, isKeyPressed, setAction
Multiplayer: 
Problems: 

Notes