GearBlocks
The GearBlocks Lua scripting API
Public Member Functions | List of all members
SmashHammer.Input.IInputActions Interface Reference

Provides access to input action state. More...

Inheritance diagram for SmashHammer.Input.IInputActions:
SmashHammer.Input.InputActionsAsset

Public Member Functions

bool IsTriggered (int actionID)
 Was an input action triggered?
 
bool IsHeld (int actionID)
 Is an input action held?
 

Detailed Description

Provides access to input action state.

Member Function Documentation

◆ IsTriggered()

bool SmashHammer.Input.IInputActions.IsTriggered ( int  actionID)

Was an input action triggered?

Parameters
actionIDThe ID of the input action to check.
Returns
true if the input action was triggered this frame; otherwise, false.

◆ IsHeld()

bool SmashHammer.Input.IInputActions.IsHeld ( int  actionID)

Is an input action held?

Parameters
actionIDThe ID of the input action to check.
Returns
true if the input action is currently held; otherwise, false.