API ReferenceGE Extensionsflowgraphnodesinput
Get Action Control (Flowgraph Node)
- **Node Name:** `Get action control`
Overview
- Node Name:
Get action control - Category:
repeat_instant - File:
extensions/flowgraph/nodes/input/getActionControl.lua - Tags: scenario
Returns the control name (key/button binding) mapped to a given input action.
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
actionName | string | The name of the input action (e.g., "accelerate") |
Output Pins
| Pin | Type | Description |
|---|---|---|
controlName | string | The name of the control bound to that action |
Internals
- Simple per-frame node - calls
core_input_bindings.getControlForAction()every frame. - Returns the currently bound control name as a string.
How It Works
- Each frame, looks up the control binding for the given action name.
- Outputs the control name (e.g.,
"keyboard W","gamepad RT"). - Useful for displaying context-sensitive control hints in UI.
Lua Code Example
-- Get the control bound to the accelerate action
local control = core_input_bindings.getControlForAction("accelerate")
-- control might be "keyboard W" or "gamepad RT"Key Dependencies
core_input_bindings.getControlForAction()- resolves action name to bound control
Additional Methods
C:work(args)
Main work function called each frame/tick when the node is active.
Parameters:
args
See Also
- Set Input Actions (Flowgraph Node) - Related reference
- Set Input Action Filters (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide