Skip to main content
POST
/
input
/
bind
bind a key to an action
curl --request POST \
  --url http://localhost:3917/input/bind \
  --header 'Content-Type: application/json' \
  --data '
{
  "action": "move_forward",
  "key": "W"
}
'
{
  "ok": true,
  "message": "<string>"
}

Body

application/json

A key name and the action to bind it to in the ActionMap.

The body is of type any.

Response

200 - application/json

Binding added (or an error when key/action is missing).

ok
boolean
required
message
string | null