Skip to content

@modoki/engine / index / DIGITAL

Variable: DIGITAL

const DIGITAL: readonly ["confirm", "cancel", "menu", "pause", "jump", "aim", "navUp", "navDown", "navLeft", "navRight"]

Digital actions. nav* double as UI focus movement (Part B). Each exposes an edge (pressed/released, once per transition) and a level (held). aim is a generic aim/ADS toggle (e.g. hold-to-aim, or a mode toggle a game wires up itself) — keyboard maps it to F, gamepad to the left trigger.

Built with Modoki.