Type Alias KeyboardInputMapEntry<TInteraction>
type KeyboardInputMapEntry<TInteraction extends string = string> = {
interaction: TInteraction;
key?: number | number[];
modifiers?: InputModifiers;
sensitivity?: number;
source: "keyboard";
}
interaction: TInteraction;
key?: number | number[];
modifiers?: InputModifiers;
sensitivity?: number;
source: "keyboard";
}
Type Parameters
- TInteraction extends string = string
Properties
interaction
Interaction type to dispatch when this entry matches
Optionalkey
key?: number | number[]
Key code filter(s). Supports a single code or an array. Omit to match any key.
Optionalmodifiers
Modifier keys that must be active for this entry to match. Omit to match regardless of modifiers.
Optionalsensitivity
sensitivity?: number
Multiplier applied to input deltas before passing to the handler. Default is 1.
source
source: "keyboard"
Discriminator: keyboard input source
Mapping rule for keyboard inputs. The
keyfield on the entry supports a single key code or an array of key codes for matching. When resolving, the condition'skeyis checked against the entry'skeyvalue(s).