Skip to content

feat: detect the active controller family (Xbox, PlayStation, Nintendo, generic) #32

Closed

Description

@nextestudios

Summary

Resolve a ControllerFamily for the active device from SDL3 data and expose it to the UI.

Motivation

Prompts must match the controller in the user's hands; today the label style is chosen manually in settings.

Requirements

  • Families: Xbox, PlayStation, Nintendo, Generic (unknown/joystick without profile).
  • Uses SDL_GetGamepadType (already read into InputDeviceInfo.TypeName by Sdl3InputBackend) and vendor/product IDs; no string matching on device names in the UI.
  • Updates when the active device changes (InputRouter.ActiveDeviceChanged), including hot swap.
  • Manual override stays available in settings (Automatic / Xbox / PlayStation / Nintendo / Generic).

Controller UX

Transparent: pressing a button on a different controller makes it active and switches the family.

Technical Notes

Add ControllerFamily to InputDeviceInfo (Core), set it in Sdl3InputBackend; InputHost publishes the active family to AppController.

Acceptance Criteria

  • Xbox, DualSense/DualShock and Switch Pro map to the right family; unknown devices map to Generic.
  • Switching from an Xbox pad to a DualSense changes the family without restarting.

Testing

Unit tests for new branches and for every bug reproduced before a fix (no trivial variations, see AGENTS.md). Manual matrix in docs/controller-compatibility.md.

Dependencies

  • None

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

Activity

  1. added
    priority: high
    type: feature
    area: input
    area: controller
    on Sep 27, 2026
  2. added
    moscow: must
    and removed
    priority: high
    on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: controllerarea: inputmoscow: musttype: feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions