feat: add controller player slot assignment for local co-op#938
Open
Aburc00 wants to merge 1 commit into
Open
Conversation
Allows users to assign each connected controller (Xbox, PS5, etc.) to a specific player slot (1-4) independently of browser-assigned gamepad index. When local co-op is enabled, the XCloud patch uses the user-defined mapping so e.g. an Xbox controller can be P1 and a PS5 DualSense can be P2 reliably. - ControllerSetting type gains a playerIndex field (-1 = auto, 0-3 = fixed) - StreamSettings tracks a gamepadSlots map (browserIndex -> playerSlot) - BxExposed exposes getGamepadPlayerSlot() for the runtime patch - local-co-op-enable.ts routes both onGamepadChanged and onGamepadInput through getGamepadPlayerSlot() instead of using raw browser indices - Controller settings UI shows a "Player slot (co-op)" dropdown that appears only when Local Co-Op is enabled - Gamepad connect toast shows the assigned slot number (P1/P2/P3/P4) https://claude.ai/code/session_01CQckfGUJHunV7zUygAEhH3
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.
Allows users to assign each connected controller (Xbox, PS5, etc.) to a specific player slot (1-4) independently of browser-assigned gamepad index. When local co-op is enabled, the XCloud patch uses the user-defined mapping so e.g. an Xbox controller can be P1 and a PS5 DualSense can be P2 reliably.
https://claude.ai/code/session_01CQckfGUJHunV7zUygAEhH3