Skip to main content

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.

Inputs

General

DataDescription
NameLabel for the action (default: "Action")

Bindings

DataDescription
Methods JSONJSON or array: [{code:"Key:ArrowLeft", multiplier:-1}, ...]
Set MethodObject {code, multiplier} to add/update one binding
Remove MethodBinding code to remove
Consume EventsPrevent default on press (default: false)

Outputs

DataDescription
ValueAggregated numeric value from active bindings
PressedTrue when value transitions from 0 to non-zero this frame
ReleasedTrue when value transitions from non-zero to 0 this frame
Activeabs(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.