API

Type Alias InputConditions

Flat conditions object passed to resolveInteraction(). Only the fields relevant to the source type need to be set. Per-source condition types (PointerConditions, KeyboardConditions, etc.) are subtypes of this and should be used at call sites for clarity.

type InputConditions = {
    button?: number;
    key?: number;
    modifiers?: InputModifiers;
    touchCount?: number;
}
Index
button?: number

Mouse button (0=left, 1=middle, 2=right)

key?: number

Key code of the current key being resolved

modifiers?: InputModifiers

Current modifier key state

touchCount?: number

Number of active touch points