Log inGet started
World

First Light: Crowfeet

Branchmain
Branchesmain
Commit0f27cfd84c

README.md

Focus

Menu focus navigation for the cards of First Light: Crowfeet. A controller has no pointer, so every menu carries an ordered ring of focusable ids and exactly one of them is lit; this module walks that ring.

  • Focus.open(list, prefer) — open a menu: the ids in stick order, and which starts lit.
  • Focus.axis(v, dt) — feed the navigate axis; one flick is one step, a held stick repeats.
  • Focus.point(id) — a mouse crossing a row or a finger tapping it moves the focus there.
  • Focus.id() / Focus.isFocused(id) / Focus.items() / Focus.generation() — read it.
  • Focus.step(delta) / Focus.close() / Focus.release().

Fed by game/input/console.inputMap; consumed by game.ui.Screens, which asks it which row to draw lit. Installed from ZeroMind (THE EIGHTH KETYL) and owned here by the presentation slice.