Repository navigation
feat: choose the active controller and flag virtual duplicates - #136
Merged
Merged
Conversation
nextestudios
force-pushed
the
feature/80-active-controller
branch
from
September 27, 2026 04:35
0fe190e to
34c0765
Compare
Menu → "Controle ativo" lists connected controllers (family, type, VID:PID, physical or virtual). South/A on one locks the router to it: no other device takes over, even idle, until "Automático" is chosen or the device disconnects. Steam Input (28DE:11FF), SDL virtual pads and a likely ViGEm Xbox 360 next to a PlayStation/Nintendo pad are flagged as virtual copies; the bottom bar warns once per copy and the controller test report marks them. Closes #80 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nextestudios
force-pushed
the
feature/80-active-controller
branch
from
September 27, 2026 04:38
34c0765 to
7922d8b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
InputRouter.SelectActiveDevice, which now locks the router: only that device is routed, no other device takes over (not even while idle). "Automático" unlocks; if the chosen device disconnects the router unlocks and the bottom bar says so.ControllerDuplicatesin Core): SDL virtual joysticks, Steam Virtual Gamepad (28DE:11FF) and — as likely — a wired Xbox 360 (045E:028E) next to a PlayStation/Nintendo pad (DS4Windows/BetterJoy via ViGEm). Uses VID/PID only, never names. The bottom bar warns once per copy; the menu item detail says which device it may repeat; the controller test screen (feat: in-app controller test screen #127) report showsvirtual (Steam Input)/likely virtual (DS4Windows/ViGEm).AllowAutomaticActivation); a locked device is unaffected by it.Tests
InputRouterTests.Explicitly_selected_device_is_the_only_one_routed_until_automatic_or_removed(lock, unlock, disconnect) andActiveControllerJourneyTests(Steam virtual + DualSense: warning, menu, choosing the virtual one routes only it, back to automatic).Closes #80
🤖 Generated with Claude Code