Skip to content

API Variable UIActions

github-actions[bot] edited this page Dec 1, 2026 · 3 revisions

Variable: UIActions

const UIActions: ActionSetDef<{
  cancel: ActionType<"button">;
  navigate: ActionType<"vec2">;
  next: ActionType<"button">;
  previous: ActionType<"button">;
  submit: ActionType<"button">;
}>;

Defined in: src/engine/ui/navigation.ts:67

The built-in UI actions (ADR 0340), read by engine.UINavigation. Their bindings are the ui context's (arrow keys, the d-pad and the left stick; Enter, Space and the south button; Escape and the east button; Tab and Shift+Tab), which players rebind like any other context.

Clone this wiki locally