Input polling functions. More...
Public Member Functions | |
| decimal | GetMouseX () |
| Gets cursor's X position. | |
| decimal | GetMouseY () |
| Gets cursor's Y position. | |
| boolean | IsMouseButtonDown (integer mouseButtonID) |
| Gets whether the mouse button is currently down. | |
| boolean | IsMouseButtonPressed (integer mouseButtonID) |
| Gets whether the mouse button started pressing during the current frame. | |
| boolean | IsMouseButtonReleased (integer mouseButtonID) |
| Gets whether the mouse button released during the current frame. | |
| MOUSEMODE | GetMouseMode () |
| Gets the current mouse mode. | |
| void | SetMouseMode (MOUSEMODE mouseMode) |
| Sets the current mouse mode. | |
| boolean | IsKeyDown (Key keyID) |
| Gets whether the key is currently down. | |
| boolean | IsKeyPressed (Key keyID) |
| Gets whether the key started pressing during the current frame. | |
| boolean | IsKeyReleased (Key keyID) |
| Gets whether the key released during the current frame. | |
| string | GetKeyName (Key keyID) |
| Gets the name of the key. | |
| string | GetButtonName (Button button) |
| Gets the name of the button. | |
| string | GetAxisName (Axis axis) |
| Gets the name of the axis. | |
| Key | ParseKeyName (string keyName) |
| Parses a string into a Key. | |
| Button | ParseButtonName (string buttonName) |
| Parses a string into a Button. | |
| Axis | ParseAxisName (string axisName) |
| Parses a string into an Axis. | |
| array | GetActionList () |
| Gets a list of all input actions. | |
| boolean | ActionExists (string actionName) |
| Gets whether the given input action exists. | |
| boolean | IsActionHeld (integer playerID, string actionName, InputDevice inputDevice) |
| Gets whether the input action is currently held for the specified player. | |
| boolean | IsActionPressed (integer playerID, string actionName, InputDevice inputDevice) |
| Gets whether the input action is currently pressed for the specified player. | |
| boolean | IsActionReleased (integer playerID, string actionName, InputDevice inputDevice) |
| Gets whether the input action was released for the specified player. | |
| boolean | IsActionHeldByAny (string actionName, InputDevice inputDevice) |
| Gets whether the input action is currently held by any player. | |
| boolean | IsActionPressedByAny (string actionName, InputDevice inputDevice) |
| Gets whether the input action is currently pressed by any player. | |
| boolean | IsActionReleasedByAny (string actionName, InputDevice inputDevice) |
| Gets whether the input action was released by any player. | |
| boolean | IsAnyActionHeld (integer playerID, InputDevice inputDevice) |
| Gets whether any input action is currently held for the specified player. | |
| boolean | IsAnyActionPressed (integer playerID, InputDevice inputDevice) |
| Gets whether any input action is currently pressed for the specified player. | |
| boolean | IsAnyActionReleased (integer playerID, InputDevice inputDevice) |
| Gets whether any input action was released for the specified player. | |
| boolean | IsAnyActionHeldByAny (InputDevice inputDevice) |
| Gets whether any input action is currently held by any player. | |
| boolean | IsAnyActionPressedByAny (InputDevice inputDevice) |
| Gets whether any input action is currently pressed by any player. | |
| boolean | IsAnyActionReleasedByAny (InputDevice inputDevice) |
| Gets whether any input action was released by any player. | |
| decimal | GetAnalogActionInput (integer playerID, string actionName) |
| Gets the analog value of a specific action. | |
| map | GetActionBind (integer playerID, string actionName, integer bindIndex) |
| Gets the bound input action for a specific player. | |
| void | SetActionBind (integer playerID, string actionName, InputBind inputBindType, enum actionBind, integer bindIndex) |
| Binds an input action for a specific player. | |
| void | SetActionBind (integer playerID, string actionName, InputBind inputBindType, map actionBind, integer bindIndex) |
| Binds an input action for a specific player. | |
| integer | AddActionBind (integer playerID, string actionName, InputBind inputBindType, enum actionBind) |
| Adds an input action bind for a specific player. | |
| integer | AddActionBind (integer playerID, string actionName, InputBind inputBindType, map actionBind) |
| Adds an input action bind for a specific player. | |
| void | RemoveActionBind (integer playerID, string actionName, integer bindIndex) |
| Removes a bound input action from a specific player. | |
| array | GetBoundActionList (integer playerID, string actionName) |
| Gets a list of the input actions currently bound to a specific player. | |
| integer | GetBoundActionCount (integer playerID, string actionName) |
| Gets the amount of bound input actions for a specific player. | |
| map | GetBoundActionMap (integer playerID) |
| Gets a map of the input actions currently bound to a specific player. | |
| map | GetDefaultActionBind (integer playerID, string actionName, integer bindIndex) |
| Gets the default bound input action for a specific player. | |
| void | SetDefaultActionBind (integer playerID, string actionName, InputBind inputBindType, enum actionBind, integer bindIndex) |
| Binds a default input action for a specific player. | |
| void | SetDefaultActionBind (integer playerID, string actionName, InputBind inputBindType, map actionBind, integer bindIndex) |
| Binds a default input action for a specific player. | |
| integer | AddDefaultActionBind (integer playerID, string actionName, InputBind inputBindType, enum actionBind) |
| Adds a default input action bind for a specific player. | |
| void | RemoveDefaultActionBind (integer playerID, string actionName, integer bindIndex) |
| Removes a bound input action default from a specific player. | |
| array | GetDefaultBoundActionList (integer playerID, string actionName) |
| Gets a list of the input actions bound by default to a specific player. | |
| integer | GetDefaultBoundActionCount (integer playerID, string actionName) |
| Gets the amount of bound default input actions for a specific player. | |
| map | GetDefaultBoundActionMap (integer playerID) |
| Gets a map of the input actions bound by default to a specific player. | |
| void | ResetActionBindsToDefaults (integer playerID) |
| Sets all input actions for a specific player to its defaults. | |
| boolean | IsPlayerUsingDevice (integer playerID, InputDevice inputDevice) |
| Checks if a given input device is being used by the player. | |
| index | GetPlayerControllerIndex (integer playerID) |
| Gets the controller index assigned to a specific player. | |
| void | SetPlayerControllerIndex (integer playerID, integer controllerID) |
| Assigns a controller index to a specific player. | |
Input polling functions.
This class also houses the input action system.
| boolean Input.ActionExists | ( | string | actionName | ) |
Gets whether the given input action exists.
| actionName | Name of the action to check. |
| integer Input.AddActionBind | ( | integer | playerID, |
| string | actionName, | ||
| InputBind | inputBindType, | ||
| enum | actionBind ) |
Adds an input action bind for a specific player.
| playerID | Index of the player. |
| actionName | Name of the action. |
| inputBindType | The input bind type. |
| actionBind | The bind definition. |
| integer Input.AddActionBind | ( | integer | playerID, |
| string | actionName, | ||
| InputBind | inputBindType, | ||
| map | actionBind ) |
Adds an input action bind for a specific player.
| playerID | Index of the player. |
| actionName | Name of the action. |
| inputBindType | The input bind type. |
| actionBind | The bind definition. |
| integer Input.AddDefaultActionBind | ( | integer | playerID, |
| string | actionName, | ||
| InputBind | inputBindType, | ||
| enum | actionBind ) |
Adds a default input action bind for a specific player.
| playerID | Index of the player. |
| actionName | Name of the action. |
| inputBindType | The input bind type. |
| actionBind | The bind definition. |
| map Input.GetActionBind | ( | integer | playerID, |
| string | actionName, | ||
| integer | bindIndex ) |
Gets the bound input action for a specific player.
| playerID | Index of the player. |
| actionName | Name of the action to get. |
| bindIndex | Which bind index to get. |
| array Input.GetActionList | ( | ) |
Gets a list of all input actions.
| decimal Input.GetAnalogActionInput | ( | integer | playerID, |
| string | actionName ) |
Gets the analog value of a specific action.
| playerID | Index of the player to check. |
| actionName | Name of the action to check. |
| string Input.GetAxisName | ( | Axis | axis | ) |
Gets the name of the axis.
| axis | Which axis to check. |
| integer Input.GetBoundActionCount | ( | integer | playerID, |
| string | actionName ) |
Gets the amount of bound input actions for a specific player.
| playerID | Index of the player. |
| actionName | Name of the action. |
| array Input.GetBoundActionList | ( | integer | playerID, |
| string | actionName ) |
Gets a list of the input actions currently bound to a specific player.
| playerID | Index of the player. |
| actionName | Name of the action to get. |
| map Input.GetBoundActionMap | ( | integer | playerID | ) |
Gets a map of the input actions currently bound to a specific player.
| playerID | Index of the player. |
| string Input.GetButtonName | ( | Button | button | ) |
Gets the name of the button.
| button | Which button to check. |
| map Input.GetDefaultActionBind | ( | integer | playerID, |
| string | actionName, | ||
| integer | bindIndex ) |
Gets the default bound input action for a specific player.
| playerID | Index of the player. |
| actionName | Name of the action to get. |
| bindIndex | Which bind index to get. |
| integer Input.GetDefaultBoundActionCount | ( | integer | playerID, |
| string | actionName ) |
Gets the amount of bound default input actions for a specific player.
| playerID | Index of the player. |
| actionName | Name of the action. |
| array Input.GetDefaultBoundActionList | ( | integer | playerID, |
| string | actionName ) |
Gets a list of the input actions bound by default to a specific player.
| playerID | Index of the player. |
| actionName | Name of the action to get. |
| map Input.GetDefaultBoundActionMap | ( | integer | playerID | ) |
Gets a map of the input actions bound by default to a specific player.
| playerID | Index of the player. |
| string Input.GetKeyName | ( | Key | keyID | ) |
Gets the name of the key.
| keyID | The key ID to check. |
| MOUSEMODE Input.GetMouseMode | ( | ) |
Gets the current mouse mode.
| decimal Input.GetMouseX | ( | ) |
Gets cursor's X position.
| decimal Input.GetMouseY | ( | ) |
Gets cursor's Y position.
| index Input.GetPlayerControllerIndex | ( | integer | playerID | ) |
Gets the controller index assigned to a specific player.
| playerID | Index of the player to check. |
| boolean Input.IsActionHeld | ( | integer | playerID, |
| string | actionName, | ||
| InputDevice | inputDevice ) |
Gets whether the input action is currently held for the specified player.
| playerID | Index of the player to check. |
| actionName | Name of the action to check. |
| inputDevice | Which input device to check. |
| boolean Input.IsActionHeldByAny | ( | string | actionName, |
| InputDevice | inputDevice ) |
Gets whether the input action is currently held by any player.
| actionName | Name of the action to check. |
| inputDevice | Which input device to check. |
| boolean Input.IsActionPressed | ( | integer | playerID, |
| string | actionName, | ||
| InputDevice | inputDevice ) |
Gets whether the input action is currently pressed for the specified player.
| playerID | Index of the player to check. |
| actionName | Name of the action to check. |
| inputDevice | Which input device to check. |
| boolean Input.IsActionPressedByAny | ( | string | actionName, |
| InputDevice | inputDevice ) |
Gets whether the input action is currently pressed by any player.
| actionName | Name of the action to check. |
| inputDevice | Which input device to check. |
| boolean Input.IsActionReleased | ( | integer | playerID, |
| string | actionName, | ||
| InputDevice | inputDevice ) |
Gets whether the input action was released for the specified player.
| playerID | Index of the player to check. |
| actionName | Name of the action to check. |
| inputDevice | Which input device to check. |
| boolean Input.IsActionReleasedByAny | ( | string | actionName, |
| InputDevice | inputDevice ) |
Gets whether the input action was released by any player.
| actionName | Name of the action to check. |
| inputDevice | Which input device to check. |
| boolean Input.IsAnyActionHeld | ( | integer | playerID, |
| InputDevice | inputDevice ) |
Gets whether any input action is currently held for the specified player.
| playerID | Index of the player to check. |
| inputDevice | Which input device to check. |
| boolean Input.IsAnyActionHeldByAny | ( | InputDevice | inputDevice | ) |
Gets whether any input action is currently held by any player.
| inputDevice | Which input device to check. |
| boolean Input.IsAnyActionPressed | ( | integer | playerID, |
| InputDevice | inputDevice ) |
Gets whether any input action is currently pressed for the specified player.
| playerID | Index of the player to check. |
| inputDevice | Which input device to check. |
| boolean Input.IsAnyActionPressedByAny | ( | InputDevice | inputDevice | ) |
Gets whether any input action is currently pressed by any player.
| inputDevice | Which input device to check. |
| boolean Input.IsAnyActionReleased | ( | integer | playerID, |
| InputDevice | inputDevice ) |
Gets whether any input action was released for the specified player.
| playerID | Index of the player to check. |
| inputDevice | Which input device to check. |
| boolean Input.IsAnyActionReleasedByAny | ( | InputDevice | inputDevice | ) |
Gets whether any input action was released by any player.
| inputDevice | Which input device to check. |
| boolean Input.IsKeyDown | ( | Key | keyID | ) |
Gets whether the key is currently down.
| keyID | The key ID to check. |
| boolean Input.IsKeyPressed | ( | Key | keyID | ) |
Gets whether the key started pressing during the current frame.
| keyID | The key ID to check. |
| boolean Input.IsKeyReleased | ( | Key | keyID | ) |
Gets whether the key released during the current frame.
| keyID | The key ID to check. |
| boolean Input.IsMouseButtonDown | ( | integer | mouseButtonID | ) |
Gets whether the mouse button is currently down.
Mouse Button Indexes:
| mouseButtonID | Index of the mouse button to check. |
| boolean Input.IsMouseButtonPressed | ( | integer | mouseButtonID | ) |
Gets whether the mouse button started pressing during the current frame.
Mouse Button Indexes:
| mouseButtonID | Index of the mouse button to check. |
| boolean Input.IsMouseButtonReleased | ( | integer | mouseButtonID | ) |
Gets whether the mouse button released during the current frame.
Mouse Button Indexes:
| mouseButtonID | Index of the mouse button to check. |
| boolean Input.IsPlayerUsingDevice | ( | integer | playerID, |
| InputDevice | inputDevice ) |
Checks if a given input device is being used by the player.
| playerID | Index of the player to check. |
| inputDevice | Which input device to check. |
| Axis Input.ParseAxisName | ( | string | axisName | ) |
Parses a string into an Axis.
| axisName | The axis name to parse. |
| Button Input.ParseButtonName | ( | string | buttonName | ) |
Parses a string into a Button.
| buttonName | The button name to parse. |
| Key Input.ParseKeyName | ( | string | keyName | ) |
Parses a string into a Key.
| keyName | The key name to parse. |
| void Input.RemoveActionBind | ( | integer | playerID, |
| string | actionName, | ||
| integer | bindIndex ) |
Removes a bound input action from a specific player.
| playerID | Index of the player. |
| actionName | Name of the action to unbind. |
| bindIndex | Which bind index to remove. If not passed, this removes all binds from the given action. |
| void Input.RemoveDefaultActionBind | ( | integer | playerID, |
| string | actionName, | ||
| integer | bindIndex ) |
Removes a bound input action default from a specific player.
| playerID | Index of the player. |
| actionName | Name of the action to unbind. |
| bindIndex | Which bind index to remove. If not passed, this removes all binds from the given action. |
| void Input.ResetActionBindsToDefaults | ( | integer | playerID | ) |
Sets all input actions for a specific player to its defaults.
| playerID | Index of the player. |
| void Input.SetActionBind | ( | integer | playerID, |
| string | actionName, | ||
| InputBind | inputBindType, | ||
| enum | actionBind, | ||
| integer | bindIndex ) |
Binds an input action for a specific player.
| playerID | Index of the player. |
| actionName | Name of the action to set. |
| inputBindType | The input bind type. |
| actionBind | The bind definition. |
| bindIndex | Which bind index to set. |
| void Input.SetActionBind | ( | integer | playerID, |
| string | actionName, | ||
| InputBind | inputBindType, | ||
| map | actionBind, | ||
| integer | bindIndex ) |
Binds an input action for a specific player.
| playerID | Index of the player. |
| actionName | Name of the action to set. |
| inputBindType | The input bind type. |
| actionBind | The bind definition. |
| bindIndex | Which bind index to set. |
| void Input.SetDefaultActionBind | ( | integer | playerID, |
| string | actionName, | ||
| InputBind | inputBindType, | ||
| enum | actionBind, | ||
| integer | bindIndex ) |
Binds a default input action for a specific player.
| playerID | Index of the player. |
| actionName | Name of the action to set. |
| inputBindType | The input bind type. |
| actionBind | The bind definition. |
| bindIndex | Which bind index to set. |
| void Input.SetDefaultActionBind | ( | integer | playerID, |
| string | actionName, | ||
| InputBind | inputBindType, | ||
| map | actionBind, | ||
| integer | bindIndex ) |
Binds a default input action for a specific player.
| playerID | Index of the player. |
| actionName | Name of the action to set. |
| inputBindType | The input bind type. |
| actionBind | The bind definition. |
| bindIndex | Which bind index to set. |
| void Input.SetMouseMode | ( | MOUSEMODE | mouseMode | ) |
Sets the current mouse mode.
| mouseMode | The mouse mode to set. |
| void Input.SetPlayerControllerIndex | ( | integer | playerID, |
| integer | controllerID ) |
Assigns a controller index to a specific player.
| playerID | Index of the player. |
| controllerID | Index of the controller to assign, or null to unassign. |