|
GearBlocks
The GearBlocks Lua scripting API
|
The input actions. More...
Public Member Functions | |
| bool | IsTriggered (int actionID) |
| Was an input action triggered? | |
| bool | IsHeld (int actionID) |
| Is an input action held? | |
| bool | IsTriggered (int actionID) |
| Was an input action triggered? | |
| bool | IsHeld (int actionID) |
| Is an input action held? | |
| string | GetBinding (int actionID, bool getSecondary, bool shortNames) |
| Get the key bound to an input action. | |
The input actions.
Available in Lua via the "InputActions" global, for example:
| bool SmashHammer.Input.InputActionsAsset.IsTriggered | ( | int | actionID | ) |
Was an input action triggered?
| actionID | The ID of the input action to check. |
true if the input action was triggered this frame; otherwise, false.Implements SmashHammer.Input.IInputActions.
| bool SmashHammer.Input.InputActionsAsset.IsHeld | ( | int | actionID | ) |
Is an input action held?
| actionID | The ID of the input action to check. |
true if the input action is currently held; otherwise, false.Implements SmashHammer.Input.IInputActions.