humanInput
Turns the human player hands (sim/controls.inputMap on keyboard and gamepad, plus the shell touch layer `ui.touch` when present) into the CONTRACT.md intent record. Called by sim/match only.
sim/humanInput
Turns the human player hands (sim/controls.inputMap on keyboard and gamepad, plus the shell touch layer ui.touch when present) into the CONTRACT.md intent record. Called by sim/match only.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2sim/humanInput: the human's hands as a CONTRACT.md intent record. Reads sim/controls.inputMap (keyboard and gamepad) and, when the shell's touch layer `ui.touch` is present, its `read()` record, and folds them into one intent per sim tick. Pass without the ball becomes switch; a shoot press without the ball becomes a slide tackle. Edges are latched between frames so a press is never lost when a frame runs no sim step, nor seen twice when it runs several.
clearEdges( ) → void
activate( ) → void
Activate the match controls (idempotent).
deactivate( ) → void
Release the match controls.
touch( ) → void
The shell's touch layer, looked up now and then until it exists.
poll(_dt: number) → void
Read the touch layer once a frame and latch its edges. Called by the match every frame.
| arg | type | description |
|---|---|---|
| _dt | number |
consumeEdges( ) → void
Clear the latched edges once a sim step has read them.
intent(p: ?, hasBall: boolean, _dt: number) → void
The intent record for the human's footballer `p` this tick.
| arg | type | description |
|---|---|---|
| p | ? | |
| hasBall | boolean | |
| _dt | number |
active( ) → boolean
Whether the match controls are active.
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.