runtime_input
Simulate a player pressing an Input Map action in a running game, hold it for frames, then release, so is_action_just_pressed returns true and _unhandled_input receives it.
Instructions
Press an input action in a running game, as a player would: pressed for the given number of frames, then released, through the normal input path, so is_action_just_pressed and _unhandled_input see it. Actions come from the project's Input Map (project_config lists them). Returns: once released.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Input Map action, e.g. jump | |
| frames | No | Frames to hold it (default 2) | |
| strength | No | 0..1 for analog actions (default 1) | |
| session_id | No | Session from runtime_run. Required only when several games run. |