EC-009: Hotspot Magnet research — run sheet
Paired WP: WP-086 Purpose: Run WP-086’s research in a fixed order, recording each finding in the plan’s evidence register as it’s made, so a stopped session loses nothing. Status: done (2026-11-26). Step 3’s button capture is a gap.
Evidence rule: every checked box cites a file and symbol at the pinned commit, or (Step 3) a command and its date. No citation, no check. The E- and H-numbers are rows in the plan’s evidence and decision registers.
Pre-flight
- WP-086 is 📝 Drafted on
mainand nobody else holds it: no open PR or branch names WP-086 (gh pr list --search WP-086,git ls-remote --heads origin). Checked 2026-11-26: no PR, branch or worktree; the fork has no WP-086 branch. The open PRs #223 and #224 touch onlydashboard.json. The claim is the branchdocs/wp-086-hotspot-magnet-research(commitba0fb80). - Pre-flight not required (WP-086 header). Session starts from WP-086 and this EC.
- Work on a docs branch in its own worktree of this repo, not in
C:\dev\scooby-engine:C:\claude-worktrees\scooby-wp086-exec.
Step 0 — Pin the commits (time-box: 0:10)
git -C C:\dev\scummvm fetch origin; record theorigin/scooby-enginecommit in plan §3.8:ff490ad9449f.- Fetch
scummvm/scummvmmaster; record its commit for Step 6:7b6fa644d74a(2026-11-26), merge base2982fe324b6c.
Outcome: pinned; recorded in plan §3.8.
Step 1 — Keymapper and Virtual Mouse (time-box: 1:00)
- Action dispatch: key or button → Keymapper action → event (E1).
- Keymap order when an engine keymap and a global keymap bind the same input (E2).
- Virtual Mouse actions, default bindings per platform, and its movement and click output (E3, E4, E5).
- Answer WP-086 item 1’s question (engine keymap vs Virtual Mouse on the D-pad), yes or no, with source: yes (E2, E3).
Outcome: an enabled game keymap binding JOY_UP…JOY_RIGHT takes those
buttons from the Virtual Mouse in games; the Virtual Mouse has no click.
Step 2 — Android input (time-box: 0:45)
- D-pad and OK traced from
ScummVMEvents.javathroughbackends/platform/android/events.cppto the core event (E6). - Keys or joystick hat events; key repeat on hold; keys the backend consumes itself (E6, E7, E8).
- Pointer Speed and acceleration: where they apply (E9).
- Virtual gamepad overlay (
touchcontrols.cpp): shown or active on a TV with no touch screen? No (E10).
Outcome: the remote’s D-pad arrives as joystick buttons; JOY_CENTER is
unbound in games; BACK and MENU are taken; no acceleration setting.
Step 3 — The remote on the TCL 65Q77K (time-box: 0:30)
adb connectto the TV (smart-TV guide);adb shell getevent -l, ordumpsys inputif denied. The TV was already connected;getevent -lpanddumpsys inputworked (E22).- Each remote button, short and long press: key code, reaches the app or
reserved, long-press output. Gap: a 3-minute
getevent -ltcapture on 2026-11-26 had no button presses. - Raw captures kept local; only codes and behaviors go in the plan.
Outcome: gap, recorded in plan §3.2 with the command to fill it.
Step 4 — The hotspot display and its engines (time-box: 1:15)
Graphics::HotspotInfofields andHotspotRenderer(E12, E15).- When
getHotspotPositions(),drawHotspots()andshowHotspots()run; hold and toggle key modes and their action (E11, E13, E14). enable_hotspots: where it’s set and how its default resolves (E14).- What each of
macs2,scumm,toucheand bothhollywoodgames returns fromgetHotspotPositions()(E16). - Answer WP-086 item 4’s two questions (provider interface; single selected target), with source (plan §3.3).
Outcome: the provider interface is usable as is (a stable id may need adding); the renderer marks one target only as a one-item list.
Step 5 — Other engine navigation (time-box: 0:30)
- Riven (
engines/mohawk/), MADS (engines/mads/) and agit grepfor cursor cycling between hotspots (E17).
Outcome: only Lab’s “FOCUS” moves the cursor to the next interactive item; nothing reusable.
Step 6 — Upstream drift (time-box: 0:20)
git diff <pinned> <upstream master> --statfor the files read in Steps 1, 2 and 4 (E21).
Outcome: only 735ad86c21 (Android mouse pointer capture); no finding
changes.
Step 7 — TerraGlyph targets, Gen 1 (time-box: 1:00)
- Placement fields for kind, hidden, current step, draw order; how to list a room’s live placements (E18).
- Toolbar rooms, inventory and close-ups: what they do to the clickable set (E19).
- Proposed eligibility rule, including characters and simple sprites (plan §3.5, H7).
- Proposed interaction-point method verified by
Room::hitTest(), and its behavior for a fully covered placement (plan §3.5, H3). - Can the headless self-test list a room’s eligible placements? Yes (E20).
Outcome: rule and method proposed; activation can reuse
TerraglyphEngine::handleMouse(); the polygon box needs a small accessor.
Step 8 — Configuration and location (time-box: 0:30)
- Extra GUI options: mechanism, example engine (Awe), GUIO flag, persistence, run-time read (E23, E24).
- The exact file and symbol for a default-off “Hotspot Assist” option;
whether the
enable_hotspotsmodel fits better (E24, H5). - Shared-location recommendation with reasons (plan §3.4, H4).
Outcome: TerraglyphMetaEngine::getAdvancedExtraGuiOptions() for Phase
1; engines/ beside the hotspot display for the shared code.
Step 9 — Write-up and close (time-box: 0:45)
- Plan §3.1–3.5 and §3.7 rewritten from the findings; §3.8 register, §10.4 rows (proposed or unverified only) and Appendix A filled.
- WP-086 exit criteria checked one by one, each with its evidence (WP-086 §Close).
git diff --name-only mainlists only the four allowed files.- Strict wiki build passes.
- WP-086 → ✅ Done in its header and WORK_INDEX; plan §11 packet 1 marked done.
Outcome: closed.
Definition of done
Every step’s outcome recorded, every WP-086 exit criterion met with its evidence, and the WORK_INDEX row flipped in the close commit.
Out-of-scope captures
- Two small inaccuracies in the fork: the comment at
engines/engine.h:560says hotspot markers are “semi-transparent circles”, but the default is a crosshair; andHotspotTypeis never used in drawing. Upstream-comment material, not ours to fix in WP-086. - TerraGlyph implementing
getHotspotPositions()would also give its games ScummVM’s show-all hotspot display. A candidate for the TerraGlyph hotspot provider packet (plan §11, packet 5).