Add advertised continuous input values

This commit is contained in:
Meta Vens 2026-07-15 11:13:54 +01:00
commit 52c781b4f2
2 changed files with 18 additions and 1 deletions

View file

@ -13,3 +13,10 @@ Actions may be derived from live state such as equipped modules, weapon groups,
cargo consumables, role, docking state, or mode. A binding whose action is not
currently available remains dormant so it can recover when that semantic action
returns.
Actions that consume a live device value declare `inputValue`. The
`button-hold.v1` model writes `1` to the named payload key on press and `0` on
release. The `axis.v1` model writes the current normalized axis value. Clients
send changed values through the action's advertised operation; providers own
interpretation, persistence, receipts, and simulation. A client must not infer
decay or repair a missed release by mutating presented state.

View file

@ -23,7 +23,8 @@
"iconRef": { "type": "string" },
"availability": { "enum": ["available", "dormant", "unavailable"] },
"sourceRef": { "type": "string" },
"payload": { "type": "object", "additionalProperties": { "type": "string" } }
"payload": { "type": "object", "additionalProperties": { "type": "string" } },
"inputValue": { "$ref": "#/$defs/inputValue" }
},
"additionalProperties": false
}
@ -43,6 +44,15 @@
}
},
"$defs": {
"inputValue": {
"type": "object",
"required": ["model", "payloadKey"],
"properties": {
"model": { "enum": ["button-hold.v1", "axis.v1"] },
"payloadKey": { "type": "string", "minLength": 1 }
},
"additionalProperties": false
},
"gesture": {
"type": "object",
"required": ["kind", "controls"],