Advanced bindings require host.sdk: "1.1.0" and Dock capability knob.gestures.v1. Updated hosts continue to accept SDK 1.0 packages. Older hosts reject the new SDK version; updated hosts report incompatible firmware instead of silently dropping advanced input. No new permission is granted.
host.sdk: "1.1.0"
knob.gestures.v1
Use optional knob.doublePress, triplePress, longPress, heldCw and heldCcw beside existing press, cw, ccw. Each Host binding has {label, emit} and references a declared event. The same action keys are available in projection.ui.knob for restricted local actions. A local mapping takes precedence for that action; local-only bindings preserve native execution.
knob.doublePress
triplePress
longPress
heldCw
heldCcw
press
cw
ccw
{label, emit}
projection.ui.knob
{ "knob": { "label": "Adjust", "press": {"label": "Select", "emit": "select"}, "doublePress": {"label": "Next", "emit": "next"}, "longPress": {"label": "Reset", "emit": "reset"}, "heldCw": {"label": "Fine adjustment", "emit": "adjust"} } }
null
doublePress
{phase, delta, heldMs}
Held phases are start, update, end, cancel. The start includes the first detents; updates contain subsequent signed detents (positive clockwise, negative counterclockwise, magnitude at most 64). End/cancel contain zero. heldMs is an integer from 0 to 13000. Direction changes end the old action and start the new one. Every held event schema must accept all four phases. Perform adjustment only on start/update; termination releases held input without another adjustment. Local actions apply once per detent and consume end/cancel without applying the action.
start
update
end
cancel
heldMs
Only the active, interactable foreground plugin owns ordinary gestures. Declaring longPress or starting a declared held rotation captures the ordinary 3-second system menu for that press. The 5-second shutdown countdown, 8-second power-off arm and 13-second reset confirmation remain reserved. System modals and lock take priority. A plugin without a longPress binding retains the system default.
Rotation discards pending clicks. Long presses never also click. Leaving the plugin, changing its bindings, modal/system takeover, lock, disconnect or stop cancels active input; the current physical press must be released before a new owner accepts input. Do not replay gestures on reconnect. Existing three-action plugins retain their immediate release-click behavior. Plugins that drive authorized external input must also release it on view hide, abort and teardown: a transport disconnect cannot guarantee delivery of the final cancel event.
The editable fixture is packages/plugin-tools/test-fixtures/knob-gestures. It changes fixture state only. The tools package also ships it at dist/fixtures/knob-gestures. Import it into a source build of Studio, or use the built standalone tools:
packages/plugin-tools/test-fixtures/knob-gestures
dist/fixtures/knob-gestures
bolt-plugin inspect packages/plugin-tools/test-fixtures/knob-gestures bolt-plugin check packages/plugin-tools/test-fixtures/knob-gestures bolt-plugin events packages/plugin-tools/test-fixtures/knob-gestures events.json
events.json is an ordered array, for example:
events.json
[ {"name":"doublePress","context":null}, {"name":"heldCw","context":{"phase":"start","delta":1,"heldMs":0}}, {"name":"heldCw","context":{"phase":"update","delta":2,"heldMs":100}}, {"name":"heldCw","context":{"phase":"cancel","delta":0,"heldMs":200}} ]
Standalone and Studio MCP use plugin_event with the same declared event name and context. Read knobGestures from plugin_read.context (standalone/API) or plugin_context (Studio/Codex). CLI help and both MCP instruction sets include the same SDK rules. Semantic preview buttons exercise handlers; physical recognition is tested by the shared native recognizer. The standalone native simulator accepts Return down/up, Left/Right while held, and pressing/dragging its product dial.
plugin_event
knobGestures
plugin_read.context
plugin_context
PEXAR_FIRMWARE_ROOT=/absolute/firmware-checkout node scripts/test-knob-gestures-native.mjs --all
This owned, headless fixture tests the production catalog path and legacy single-projection path, actual SDL mouse click/hold/drag and left/right buttons, raw timing, direction changes, system-reserved cancellation and rendered pixels without connecting a Dock or controlling another application. Real firmware input, lock/suspend and reconnect validation remain hardware checks. This source change does not deploy firmware, Studio or website artifacts.
The complete product image, including the center, dark circular divider and narrow exterior lip, stays static. Only the corresponding left/right simulator control briefly highlights, then fades back to normal. There is no floating arrow, scale or added engraving. This feedback is separate from input dispatch: it does not generate extra events, change gesture timing or alter the 854×480 plugin canvas. Feedback redraws are capped at 60 Hz and stop when idle or minimized.
Run PEXAR_FIRMWARE_ROOT=/absolute/firmware-checkout node scripts/test-simulator-knob-motion.mjs to check the static body and lip, directional highlight/fade, unchanged device pixels and one event per click. SDK/CLI/MCP event and permission contracts are unchanged.
PEXAR_FIRMWARE_ROOT=/absolute/firmware-checkout node scripts/test-simulator-knob-motion.mjs