hcifootprint/sensorInterfaces
SensorEvent
Interface: SensorEvent
Defined in: src/sensor/dom-port.ts:44
The three things the sensor asks of an event: what happened, where, and whether a human really did it.
isTrusted is optional because the port must not pretend a hand-built event
object carries it — the trust predicate reads it and answers honestly either
way (an absent flag is not a human).
Properties
isTrusted?
readonlyoptionalisTrusted?:boolean
Defined in: src/sensor/dom-port.ts:47
key?
readonlyoptionalkey?:string
Defined in: src/sensor/dom-port.ts:49
Present on keydown — the only event class where the key itself is the gesture.
target
readonlytarget:SensorElement|null
Defined in: src/sensor/dom-port.ts:46
type
readonlytype:string
Defined in: src/sensor/dom-port.ts:45