diff --git a/docs/input-capabilities.md b/docs/input-capabilities.md index 5f2fba3..a9c1f89 100644 --- a/docs/input-capabilities.md +++ b/docs/input-capabilities.md @@ -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. diff --git a/schemas/gamecult.eve.input_capability.v1.schema.json b/schemas/gamecult.eve.input_capability.v1.schema.json index bfcc237..eb14248 100644 --- a/schemas/gamecult.eve.input_capability.v1.schema.json +++ b/schemas/gamecult.eve.input_capability.v1.schema.json @@ -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"],