Input · interface

DigitalAction

Jump, fire, pause: a state, bound to keys and buttons.

Explained in Moving things.

interface DigitalAction
import type { DigitalAction } from '@driftengine/core';

Properties

NameTypeDescription
keysreadonlyoptionalreadonly string[]
buttonsreadonlyoptionalreadonly GamepadButton[]
mouseButtonsreadonlyoptionalreadonly MouseButton[]Mouse buttons, pressed over the input source's target: fire on the left, aim on the right.