That's a great approach — visual debugging is the only way to get this right. Let me build a debug panel that isolates each button with a solid black outline + bright border so you can see exactly where every region lands, cycle through them, and then transition to an adjustable gaussian blob mode.
Let me read the current stage and buttons files to understand the full current state:
Let me check the cn utility and App.tsx too:
Good, I have the full picture now. Let me build the debug visualization system — an SVG overlay with black-fill + bright-outline mode for calibration, and an adjustable gaussian blob mode.
First, I'll rewrite ControllerStage.tsx with the SVG overlay and inline debug controls:
Now I need to add the debug state to App.tsx and pass it to ControllerStage. Let me also fix the unused import:
Now let me update App.tsx to add the debug state:
Now let me add the debug state variables to App.tsx:
Now let me pass the debug props to ControllerStage:
Let me build to check for errors:
Build succeeds. Let me add some polish to the range input styling in the CSS:
I noticed a bug in the auto-cycle timer — I used useMemo instead of useEffect. Let me fix that:
Need to add useEffect to the imports:
Build succeeds. Let me do a final verification that all the key pieces are in place:
The implementation looks complete. Let me do a final build to confirm:
Build passes. Here's what's now in place:
Debug panel (below the controller bench):
| Control | What it does |
|---|
| OFF | Normal mode — no overlay |
| ■ OUTLINE | Each button is rendered as a solid black fill + bright colored stroke covering exactly its hit region. You can see precisely where the zone lands relative to the artwork underneath. |
| ◎ BLOB | Each button renders as a gaussian-blurred shape using SVG <feGaussianBlur>. The edges fade out smoothly from the center. |
| ◉ COMPARE | Hold this button to temporarily hide the overlay so you can see just the artwork, then release to bring it back — instant A/B comparison. |
| ▷ AUTO CYCLE | Steps through every button automatically (~0.9s each) so you can watch each region in sequence without clicking. Shows which button is active in the label. |
| Button chips | Click any chip (grouped by TRIGGERS / BUMPERS / STICKS / D-PAD / FACE / CENTER) to isolate that single button. Click ALL to show everything. Clicking a chip also stops auto-cycle. |
| GAUSSIAN RADIUS slider | (Blob mode only) Adjustable from SHARP (0 — exact polygon outline) to BLOBBY (0.04 — very soft falloff). The slider has custom cyan styling. |
To calibrate LB/RB vs LT/RT:
- Click ■ OUTLINE
- Click the LB chip — you'll see exactly the bumper band covered in black with a silver outline
- Hold ◉ COMPARE to flash back to artwork, release to see the outline again
- Click LT — you'll see just the trigger wedge above the bumper line
- Repeat for RB/RT on the other side
The SVG shapes are rendered at native resolution using the same viewBox="0 0 744.09 500.36" coordinate space as the original Wikimedia SVG, so the outlines should track the artwork precisely.
Files built: src/components/ControllerStage.tsx, src/App.tsx, src/index.css