Input · interface
DigitalAction
Jump, fire, pause: a state, bound to keys and buttons.
Explained in Moving things.
interface DigitalActionimport type { DigitalAction } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
keysreadonlyoptional | readonly string[] | |
buttonsreadonlyoptional | readonly GamepadButton[] | |
mouseButtonsreadonlyoptional | readonly MouseButton[] | Mouse buttons, pressed over the input source's target: fire on the left, aim on the right. |