Interface: DwellConfig
Defined in: gaze.ts:15
Gaze support - first-class, per the design decision that gaze serves two roles:
- Combination gating (
gaze.required): input on an interactable only counts while the viewer is looking at it. - Accessibility (
gaze.dwell): looking at an interactable fills a dwell meter; a full meter fires a synthesized press - no hands needed. Consumers render the meter fromdwellProgressevents.
The dwell state machine is pure and headless-tested. The runtime feeds it hover booleans; it never sees the engine.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
decayFactor? | number | Drain speed multiplier when looking away. | gaze.ts:19 |
holdSeconds? | number | Seconds of sustained gaze to fire. | gaze.ts:17 |
rearmBelow? | number | After firing, progress must fall below this before it can re-arm. | gaze.ts:21 |