[PR #6480] [MERGED] Splitscreen: a controller joins as P2 while P1 has the keyboard and mouse #6903

Closed
opened 2026-11-03 06:28:52 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6480
Author: @MSedgeMC
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/split-pad-join


📝 Commits (2)

  • f21e244 Splitscreen: a controller joins as P2 while P1 has the keyboard and mouse
  • 67eeb06 Splitscreen: waiting players claim a pressed controller before P1 does

📊 Changes

3 files changed (+67 additions, -17 deletions)

View changed files

📝 crates/horizon-client/src/game/split.rs (+4 -4)
📝 crates/horizon-client/src/game/split/pads.rs (+61 -12)
📝 docs/extras.md (+2 -1)

📄 Description

Fixes #6329

Vanilla 26.3 has no splitscreen and no controller input, so the reference is the rule Horizon
documents for it (docs/extras.md): in P1's world a controller P1 isn't using presses a button,
then A, to join as the next player.

Horizon gave the first controller pressed in a world to P1 whenever nobody had joined yet,
whatever P1 was playing with, so with P1 on the keyboard and mouse the only controller took P1's
controls instead of offering to join. route_pads now hands a pad to P1 without asking only in a
menu, where it drives the menus, or while P1's own controller is gone and its view offers "Use
another"; anywhere else in a world the press starts the join offer, whose A joins as P2 and whose
Y gives the pad to P1.

Proven: on the build VM, cargo test -q -p horizon-client --lib split → 12 passed,
including a_controller_pressed_in_a_world_is_offered_to_join_not_taken_by_p1 (a press in a world
no longer takes P1's controls; a menu press still does, and so does one answering P1's "controller
disconnected").

Not proven: no splitscreen session was run: it needs a compositor and two input devices. The
in-game check is the report's own: Splitscreen on with P1 on the keyboard and mouse, press a button
on the controller → the join strip appears on P1's view (A Join, Y Play as P1, B No); A takes the
pad to P2's profile page, Y drives P1 with it. With P1's controller disconnected, a button on
another pad still takes P1 over.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/6480 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/split-pad-join` --- ### 📝 Commits (2) - [`f21e244`](https://github.com/horizon-rust/horizon/commit/f21e2449818fbc28c8a7b7244ff69856b90ccd3d) Splitscreen: a controller joins as P2 while P1 has the keyboard and mouse - [`67eeb06`](https://github.com/horizon-rust/horizon/commit/67eeb0604955da55c1e27577ab5cba5bf3e0785c) Splitscreen: waiting players claim a pressed controller before P1 does ### 📊 Changes **3 files changed** (+67 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/split.rs` (+4 -4) 📝 `crates/horizon-client/src/game/split/pads.rs` (+61 -12) 📝 `docs/extras.md` (+2 -1) </details> ### 📄 Description Fixes #6329 Vanilla 26.3 has no splitscreen and no controller input, so the reference is the rule Horizon documents for it (`docs/extras.md`): in P1's world a controller P1 isn't using presses a button, then A, to join as the next player. Horizon gave the first controller pressed in a world to P1 whenever nobody had joined yet, whatever P1 was playing with, so with P1 on the keyboard and mouse the only controller took P1's controls instead of offering to join. `route_pads` now hands a pad to P1 without asking only in a menu, where it drives the menus, or while P1's own controller is gone and its view offers "Use another"; anywhere else in a world the press starts the join offer, whose A joins as P2 and whose Y gives the pad to P1. **Proven:** on the build VM, `cargo test -q -p horizon-client --lib split` → `12 passed`, including `a_controller_pressed_in_a_world_is_offered_to_join_not_taken_by_p1` (a press in a world no longer takes P1's controls; a menu press still does, and so does one answering P1's "controller disconnected"). **Not proven:** no splitscreen session was run: it needs a compositor and two input devices. The in-game check is the report's own: Splitscreen on with P1 on the keyboard and mouse, press a button on the controller → the join strip appears on P1's view (A Join, Y Play as P1, B No); A takes the pad to P2's profile page, Y drives P1 with it. With P1's controller disconnected, a button on another pad still takes P1 over. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:28:52 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#6903
No description provided.