Talos docs

GET /input

Since 0.6

Where a press goes.

Plain text

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.

FieldTypePresentDescription
scenestringalwaysThe scene running now, project-relative.
inputanysometimesThe scene's meta.input, as authored; absent when it has none and the built-in map runs.
contextstringalwaysThe live input context.
frameintegeralwaysThe frame this was read on.
receiverInputReceiverViewsometimesThe entity a player's input reaches and what reads it there; absent when the scene has none.
unroutedstring[]sometimesEntities 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.

FieldTypePresentDescription
entitystringalwaysIts id.
scriptsstring[]alwaysThe behaviour modules on it.
nativebooleanalwaysWhether 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.