Repository navigation
Description
Summary
Replace the generic labels in the bottom action bar with the real button prompts of the active controller, updating live when the device changes.
Motivation
Required for the controller-first experience: users must see [A] Open on Xbox, [✕] Open on PlayStation, and the correct Nintendo/generic equivalent.
Requirements
- Central
IControllerPromptProviderthat turns a semantic action (Confirm, Back, ToggleSelection/Mark, OpenContextMenu/Actions, OpenAppMenu/Menu, PreviousRegion/NextRegion, PageUp/PageDown, Search, Extract…) intoIcon,LabelandAccessibilityTextfor the active family. - Preserves ControlFS's physical-position semantics and the confirm/back convention setting: only the visual changes.
- Hot swap: switching from Xbox to DualSense updates the bar immediately without restarting.
- Keyboard/mouse users keep keyboard key prompts when no controller is active.
- No
controllerName.Contains("Xbox")checks in UI code. - Examples: Xbox
[A] Open [X] Mark [Y] Actions [☰] Menu [B] Back; PlayStation[✕] Open [□] Mark [△] Actions [Options] Menu [○] Back; GenericButton 1…4or neutral positional shapes.
Controller UX
Nothing new to press: the bar shows exactly the buttons that work in the current context for the controller in use.
Technical Notes
Evolves ButtonGlyphs, AppController.Hints and the footer in MainWindow; the provider lives in the App/Application boundary and consumes the active family from InputHost.
Acceptance Criteria
- Xbox, PlayStation, Nintendo and generic controllers each show their own prompts.
- Changing the active controller updates the bar within one frame.
- Changing the confirm/back convention swaps both behavior and prompts.
Testing
Unit tests for new branches and for every bug reproduced before a fix (no trivial variations, see AGENTS.md). Unit tests for the provider mapping per family and convention. Manual hot-swap test with two controllers.
Dependencies
- Depends on feat: detect the active controller family (Xbox, PlayStation, Nintendo, generic) #32 — feat: detect the active controller family (Xbox, PlayStation, Nintendo, generic)
- Depends on feat: create original vector button glyphs for Xbox, PlayStation, Nintendo and generic layouts #33 — feat: create original vector button glyphs for Xbox, PlayStation, Nintendo and generic layouts
Priority: high · Milestone: 2 · Controller-First Windows UI
Activity