API Referenceatlasatlas/input
Trigger
Digital input binding. Use a factory to populate the fields corresponding to its type.
Module: atlas/input
Digital input binding. Use a factory to populate the fields corresponding to its type.
Declaration
export class Trigger { ... }Properties
type
type: TriggerType;mouseButton
mouseButton?: MouseButton;key
key?: Key;controllerButton
controllerButton?: ControllerButtonTrigger;Methods
fromKey
static fromKey(key: Key): Trigger;fromMouseButton
static fromMouseButton(mouseButton: MouseButton): Trigger;fromControllerButton
static fromControllerButton(
controllerID: number,
buttonIndex: number,
): Trigger;