EC-018: TV remote D-pad focus in the launcher and menus — run sheet

Paired WP: WP-118 Purpose: Run WP-118 in a fixed order, recording each step’s outcome as it’s done. Status: done (2026-11-30). Steps 1–4, 6 and 7 done; step 5 partly, as WP-118 was closed with criteria 3, 5 and 6 partly checked. Step 6 done: D5 applied and Jeff’s 3 m check passed, both on 2026-11-30.


Pre-flight

Step 1 — Grid focus from upstream (time-box: 0:30)

Outcome: Needed: it isn’t an ancestor of scooby-engine @ dc8a9b3a57. Cherry-picked with -x (516b27b7d3).

Step 2 — Traversal and activation (time-box: 6:00)

Outcome: Done in GUI::Dialog and the widgets. The parts:

Two rule changes came from the TV: the minor axis is the gap between the rectangles, and the search starts in the innermost group. Both are in WP-118 §Result. The grid’s arrows are a commit of their own.

Step 3 — The focus state (time-box: 2:00)

Outcome: Buttons and sliders use the theme’s highlight state. Pop-ups, checkboxes, radio buttons and the tab row draw a highlighted button. Edit fields and the grid’s selected entry use the focused list’s green bar. These looks are drawn in the foreground layer only, after a stale box showed on the TV. Checked in the TV theme and, on Windows, in the stock theme.

Step 4 — Android bindings (time-box: 1:00)

Outcome: With gui_dpad_focus set, the GUI’s Up…Right take JOY_UP… and JOY_HAT_*. Select takes JOY_CENTER, SELECT and JOY_A, and Interact is unbound. Keymaps shows them as remappable buttons (capture 61-km-gui-dirs). The Virtual Mouse keeps the D-pad for games.

Step 5 — Windows check (time-box: 1:30)

Outcome: Partly. MSYS2 UCRT64 GCC built with no warnings in gui/. In the launcher, Right from the list focused Quit and Up ×3 reached Global Options, in the stock theme’s hover red. Driving the window with SendKeys was stopped once an Alt key from the focus workaround paired with Enter and toggled fullscreen. Not checked: the other dialogs, the mouse, text-to-speech.

Step 6 — TV check (time-box: 3:00)

Outcome: Builds 26041021–26041036, then 26041037–26041039 with WP-123; 26041039 has the grid default, and 26041040, installed, adds OK opening the grid’s tray. The scope-7 screens were checked with adb’s D-pad (WP-118 §Result), except Help. Showdown’s cursor moves with D-pad long presses. The app opens on the grid (171-d5-grid-start). Jeff’s 3 m check passed: “Everything worked.”

Step 7 — Close (time-box: 1:00)

Outcome: Fork PR barefootbetters/scummvm#46 (seven commits, brand-free; the seventh, OK opening the grid’s tray, came after D5) and private PR barefootbetters/scooby-engine-private#64 (gui_dpad_focus=true). WP-118 §Result, this EC, the WORK_INDEX row and WP-104 criterion 10 are updated. D5 added gui_launcher_chooser=grid to #64, and D7’s note and WP-104’s D7 row record the grid’s return.

Definition of done

Out-of-scope captures

-