Support multiple controllers for local multiplayer #1583
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!1583
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1583/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Pipe530 on GitHub · 2026-10-17 05:11 UTC · original
Pipe530:pipe530-local-coop-controllers→main· +664 −196 · 46 files · 5 commits · merged 2026-10-17 11:15 UTCAdds support for up to 4 local players (co-op or versus).
--keyboard-player <0-4>and in the launcher's Controller settings.user.guestadded to all localization files). Guests keep separate save data but cannot earn trophies.DualSense haptics and audio output still only drive player 1's pad.
@coderabbitai[bot] on GitHub · 2026-10-17 11:02 UTC · original
📝 Walkthrough
The change adds support for up to four player-specific controller ports, with configurable keyboard assignment and F8 cycling. User-service calls now report connected players and provide localized guest names. Guest saves use user-specific directories, and guest trophy unlock data is not loaded or recorded. Tests cover player routing, user-ID mappings, and guest save isolation.
Suggested reviewers:
nmzik,techx3,defektuPriority: ➖ Normal
Change: Feature
Merge Risk: 🔵 Low · up to
37a03Players with an F8 control mapping cannot launch a game until they remove that mapping. Fix the launcher check and handle existing mappings before merging, or accept this bounded compatibility risk.
Pre-merge checks:
4 ·
1
Full details: Docstring Coverage
Explanation
Docstring coverage is 4.35% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 115 functions across 15 files. (31 skipped: 31 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.@ -256,2 +256,3 @@const bool reserved = binding.key == SDLK_ESCAPE || binding.key == SDLK_F1 ||binding.key == SDLK_F7 || binding.key == SDLK_F11;binding.key == SDLK_F7 || binding.key == SDLK_F8 ||binding.key == SDLK_F11;@coderabbitai[bot] on GitHub · 2026-10-17 11:02 UTC · original
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 5262
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 11709
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 22425
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 11724
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 3800
Handle stored and newly created F8 mappings before
InputMapexits.Configuration::ReadSettingsloadshost_input_mappingwithout filtering, andCreateEmulatorArgsforwards every stored entry as--keymap.InputMapreads that keymap, treatsSDLK_F8as reserved, and callsEXIT("Invalid input mapping: ..."). An existing F8 mapping can therefore terminate the emulator during host-input initialization.The launcher also rejects only F1, F7, and F11, so it can create new F8 mappings. Add F8 to that check and either migrate stored F8 mappings or ignore them in
InputMap.Suggested fix
For existing settings, ignore reserved bindings instead of exiting:
@coderabbitai[bot] on GitHub · 2026-10-17 11:02 UTC · original · reviewed
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
1fe375d3-323e-452f-9ab1-cb8a226439ad📥 Commits
Reviewing files that changed from the base of the PR and between
b82512be06and37a03b31b4.📒 Files selected for processing: 46
assets/localization/ar-AE.jsonassets/localization/cs-CZ.jsonassets/localization/da-DK.jsonassets/localization/de-DE.jsonassets/localization/el-GR.jsonassets/localization/en-GB.jsonassets/localization/en-US.jsonassets/localization/es-419.jsonassets/localization/es-ES.jsonassets/localization/fi-FI.jsonassets/localization/fr-CA.jsonassets/localization/fr-FR.jsonassets/localization/hu-HU.jsonassets/localization/id-ID.jsonassets/localization/it-IT.jsonassets/localization/ja-JP.jsonassets/localization/ko-KR.jsonassets/localization/nl-NL.jsonassets/localization/no-NO.jsonassets/localization/pl-PL.jsonassets/localization/pt-BR.jsonassets/localization/pt-PT.jsonassets/localization/ro-RO.jsonassets/localization/ru-RU.jsonassets/localization/sv-SE.jsonassets/localization/th-TH.jsonassets/localization/tr-TR.jsonassets/localization/vi-VN.jsonassets/localization/zh-Hans.jsonassets/localization/zh-Hant.jsonsrc/common/emulatorConfig.cppsrc/common/emulatorConfig.hsrc/graphics/presentation/window/hostInput.cppsrc/graphics/presentation/window/window.cppsrc/launcher/forms/configuration_edit_dialog.uisrc/launcher/include/configuration.hsrc/launcher/src/configurationEditDialog.cppsrc/launcher/src/mainDialog.cppsrc/libs/controller.cppsrc/libs/controller.hsrc/libs/libSaveData.cppsrc/libs/libTrophy.cppsrc/libs/libUserService.cppsrc/main.cpptests/ControllerSettingsTests.cpptests/SaveDataMemoryTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.