InputBinding
Defines which hardware binding should trigger the parent InputAction.
Memory category | Instances |
---|
Member index 12
Description
An InputBinding
defines which hardware binding should trigger the parent
InputAction, for example a key press, gamepad button, or tap on a
touch‑enabled device. There can be multiple InputBinding
instances parented
to an InputAction.
History 16
- 677 Add Forward
- 677 Add Backward
- 667 Add Vector2Scale
- 667 Add Up
- 667 Change Category of Scale from Data to Behavior
- 667 Add Right
- 667 Add Left
- 667 Add Down
- 665 Add Scale
- 665 Add ReleasedThreshold
- 665 Add PressedThreshold
- 663 Change Category of UIButton from Data to Behavior
- 663 Change Category of KeyCode from Data to Behavior
- 661 Add UIButton
- 661 Add KeyCode
- 661 Add InputBinding
Members 12
Backward
Type | Default | |
---|---|---|
KeyCode | Unknown |
Thread safety | ReadSafe |
---|---|
Category | Composite Directions |
Loaded/Saved | true |
Down
Type | Default | |
---|---|---|
KeyCode | Unknown |
Specifies an alternate KeyCode for dispatching directionally "down"
inputs to GetState() and the
StateChanged event of the parent
InputAction. When the parent action's
Type is Direction1D, the
dispatched value will be between 0
and -1
. When the parent action's
Type is Direction2D, the
dispatched value will be a Vector2 between (0, 0)
and
(0, -1)
.
Thread safety | ReadSafe |
---|---|
Category | Composite Directions |
Loaded/Saved | true |
Forward
Type | Default | |
---|---|---|
KeyCode | Unknown |
Thread safety | ReadSafe |
---|---|
Category | Composite Directions |
Loaded/Saved | true |
KeyCode
Type | Default | |
---|---|---|
KeyCode | Unknown |
Specifies the KeyCode which triggers the parent InputAction. The code type should match the input action's Type, for example KeyCode.E for an action type of Bool or KeyCode.Thumbstick1 for an action type of Direction2D. Type mismatches will either not fire the InputAction or the StateChanged event will receive a converted value.
Thread safety | ReadSafe |
---|---|
Category | Behavior |
Loaded/Saved | true |
Left
Type | Default | |
---|---|---|
KeyCode | Unknown |
Specifies an alternate KeyCode for dispatching directionally "left"
inputs to GetState() and the
StateChanged event of the parent
InputAction. Only applies when the parent action's
Type is Direction2D, in
which case the dispatched value will be a Vector2 between
(0, 0)
and (-1, 0)
.
Thread safety | ReadSafe |
---|---|
Category | Composite Directions |
Loaded/Saved | true |
PressedThreshold
Type | Default | |
---|---|---|
float | 0.5 |
Numerical value above which to fire an InputAction with a
Type of Bool, for example
when a gamepad trigger such as KeyCode.ButtonL2 exceeds 0.5
(halfway pressed). Default is 0.5
.
This property must be greater than or equal to ReleasedThreshold or else it will be clamped to ReleasedThreshold.
Thread safety | ReadSafe |
---|---|
Category | Behavior |
Loaded/Saved | true |
History 1
- 665 Add PressedThreshold
ReleasedThreshold
Type | Default | |
---|---|---|
float | 0.200000003 |
Numerical value below which to fire an InputAction with a
Type of Bool, for example
when a gamepad trigger such as KeyCode.ButtonL2 falls below 0.5
(less than halfway pressed). Default is 0.2
.
This property must be less than or equal to PressedThreshold or else it will be clamped to PressedThreshold.
Thread safety | ReadSafe |
---|---|
Category | Behavior |
Loaded/Saved | true |
History 1
- 665 Add ReleasedThreshold
Right
Type | Default | |
---|---|---|
KeyCode | Unknown |
Specifies an alternate KeyCode for dispatching directionally
"right" inputs to GetState() and the
StateChanged event of the parent
InputAction. Only applies when the parent action's
Type is Direction2D, in
which case the dispatched value will be a Vector2 between
(0, 0)
and (1, 0)
.
Thread safety | ReadSafe |
---|---|
Category | Composite Directions |
Loaded/Saved | true |
Scale
Type | Default | |
---|---|---|
float | 1 |
Amount by which to linearly scale the values of an InputAction with Type of Direction1D or Direction2D.
Thread safety | ReadSafe |
---|---|
Category | Behavior |
Loaded/Saved | true |
UIButton
Type | Default | |
---|---|---|
GuiButton |
GuiButton to connect to a boolean action.
Thread safety | ReadSafe |
---|---|
Category | Behavior |
Loaded/Saved | true |
Up
Type | Default | |
---|---|---|
KeyCode | Unknown |
Specifies an alternate KeyCode for dispatching directionally "up"
inputs to GetState() and the
StateChanged event of the parent
InputAction. When the parent action's
Type is Direction1D, the
dispatched value will be between 0
and 1
. When the parent action's
Type is Direction2D, the
dispatched value will be a Vector2 between (0, 0)
and
(0, 1)
.
Thread safety | ReadSafe |
---|---|
Category | Composite Directions |
Loaded/Saved | true |
Vector2Scale
Type | Default | |
---|---|---|
Vector2 | 1, 1 |
Amount by which to linearly scale the values of an InputAction with Type of Direction2D.
Thread safety | ReadSafe |
---|---|
Category | Behavior |
Loaded/Saved | true |
History 1
- 667 Add Vector2Scale