Skip to content

feat: add dynamic controller button prompts to action bar #34

Closed

Description

@nextestudios

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 IControllerPromptProvider that turns a semantic action (Confirm, Back, ToggleSelection/Mark, OpenContextMenu/Actions, OpenAppMenu/Menu, PreviousRegion/NextRegion, PageUp/PageDown, Search, Extract…) into Icon, Label and AccessibilityText for 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; Generic Button 1…4 or 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


Priority: high · Milestone: 2 · Controller-First Windows UI

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: controllerarea: uimoscow: musttype: featuretype: ui

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions