input_dispatch
Feeds input events through the same router as the DOM, for replay, tests and agents: { type: 'pointer', phase, pointerId, pointerType, x, y, button?, buttons?, modifiers?, pressure?, time }, { type: 'wheel', x, y, dx, dy, modifiers?, time }, { type: 'key', phase, key, code?, modifiers?, repeat?, time }, { type: 'focus', lost }, { type: 'tick', time }. Canvas CSS px; modifiers bits 1 Shift, 2 Alt, 4 Ctrl, 8 Meta. Commits and view changes it causes carry input 'verb', so a host can ask a person to approve them. Deterministic: a press waits for its content hit however long it takes (it never times out), its gestures get no inertia or damping, and the verb resolves once that hit has come and the queued events are routed. Runs no code; malformed events are counted and skipped.
Usage
await surface.executeAsync('input_dispatch', { events })Parameters
eventsobject[]
Returns
object with fed, in the ok: true envelope.
{
"type": "object",
"properties": {
"fed": {
"type": "integer",
"minimum": 0
}
},
"required": [
"fed"
]
}