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

Provides access to input action key bindings. More...

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

Public Member Functions

string GetBinding (int actionID, bool getSecondary, bool shortNames)
 Get the key bound to an input action.
 

Detailed Description

Provides access to input action key bindings.

Member Function Documentation

◆ GetBinding()

string SmashHammer.Input.IKeyBindings.GetBinding ( int  actionID,
bool  getSecondary,
bool  shortNames 
)

Get the key bound to an input action.

Parameters
actionIDThe ID of the input action to check.
getSecondarySet to true to get the secondary key; otherwise, false to get the primary key.
shortNamesSet to true to get the short name; otherwise, false to get the full name.
Returns
The name of the key bound to the input action.