You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: detect the active controller family (Xbox, PlayStation, Nintendo, generic) #32
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