GET /input
Since 0.6
Where a press goes.
Response
Response: InputStateView
GET /input — where a press goes: the action map of the scene that is running now, the context it is in, and what reads input.
| Field | Type | Present | Description |
|---|---|---|---|
scene | string | always | The scene running now, project-relative. |
input | any | sometimes | The scene's meta.input, as authored; absent when it has none and the built-in map runs. |
context | string | always | The live input context. |
frame | integer | always | The frame this was read on. |
receiver | InputReceiverView | sometimes | The entity a player's input reaches and what reads it there; absent when the scene has none. |
unrouted | string[] | sometimes | Entities whose behaviours read input with nothing routing it to them (the runtime's input-read-without-routing warning, raised by the ticks that have run). |
Response: InputReceiverView
The entity player input reaches.
| Field | Type | Present | Description |
|---|---|---|---|
entity | string | always | Its id. |
scripts | string[] | always | The behaviour modules on it. |
native | boolean | always | Whether the engine's own controller or vehicle reads the input there. |
Example
curl "http://127.0.0.1:7700/input"
Start a server with argus run --serve; the port is --port (7700 by default). The request and response fields are in the query API guide.