Skip to content

ActionPress beta ​

Interface of @v12-engine/client

ts
export interface ActionPress

An action pressed, or let go of

Members ​

binding ​

ts
binding?: Binding;

Which of its bindings it was. None when it was pressed in code (press)

down ​

ts
down: boolean;

Pressed, or (an action that is held, ActionDef.held) let go of

event ​

ts
event?: KeyboardEvent | PointerEvent | MouseEvent;

The event, when a key or a button did it

id ​

ts
id: string;

The action

shift ​

ts
shift: boolean;

Whether Shift was held with it, for an action Shift means something to (ActionDef.shift)