Input Action
Aggregate keyboard and mouse bindings into a single action value.
The Input Action node maps one or more input methods (keyboard/mouse) to a continuous value and convenient pressed/released flags.
General
| Data | Description |
|---|
| Name | Label for the action (default: "Action") |
Bindings
| Data | Description |
|---|
| Methods JSON | JSON or array: [{code:"Key:ArrowLeft", multiplier:-1}, ...] |
| Set Method | Object {code, multiplier} to add/update one binding |
| Remove Method | Binding code to remove |
| Consume Events | Prevent default on press (default: false) |
Outputs
| Data | Description |
|---|
| Value | Aggregated numeric value from active bindings |
| Pressed | True when value transitions from 0 to non-zero this frame |
| Released | True when value transitions from non-zero to 0 this frame |
| Active | abs(value) > 0 convenience flag |
Usage
- Configure Methods JSON with key/mouse codes (e.g.,
Key:ArrowLeft, Mouse:0).
- Read Value, Pressed, and Released each frame to drive movement/actions.