![]() |
GearBlocks
The GearBlocks Lua scripting API
|
An input action. More...
Properties | |
readonly string | PrimaryKeyName [get, set] |
Name of the primary key, if one is bound. | |
readonly string[] | PrimaryModifierKeyNames [get, set] |
Names of the primary bound modifier keys, if any. | |
readonly string | SecondaryKeyName [get, set] |
Name of the secondary key, if one is bound. | |
readonly string[] | SecondaryModifierKeyNames [get, set] |
Names of the secondary bound modifier keys, if any. | |
readonly bool | IgnoreExtraModifiers [get, set] |
Should extra modifiers be ignored when checking if the input action is triggered or held? | |
readonly bool | IsBound [get] |
Is the input action bound? | |
readonly bool | IsTriggered [get] |
Is the input action key triggered? | |
readonly bool | IsHeld [get] |
Is the input action key held? | |
An input action.
|
getset |
Name of the primary key, if one is bound.
The primary key name, "None" if not bound.
|
getset |
Names of the primary bound modifier keys, if any.
The primary modifier key names, nil if none bound.
Only the following are valid modifier key names:
|
getset |
Name of the secondary key, if one is bound.
The secondary key name, "None" if not bound.
|
getset |
Names of the secondary bound modifier keys, if any.
The secondary modifier key names, nil if none bound.
Only the following are valid modifier key names:
|
getset |
Should extra modifiers be ignored when checking if the input action is triggered or held?
true
to ignore modifier keys not bound to this input action; otherwise, false
.
|
get |
Is the input action bound?
true
if a key is bound to this input action; otherwise, false
.
|
get |
Is the input action key triggered?
true
if this input action's key is currently triggered; otherwise, false
.
|
get |
Is the input action key held?
true
if this input action's key is currently held; otherwise, false
.