[PR #6398] [MERGED] Splitscreen Setup: controller pickup, Give Up Pad and Leave #6849

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

📋 Pull Request Information

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

Base: main ← Head: split/fresh-controller-setup


📝 Commits (10+)

  • e359da8 Splitscreen: controller pick-up in Setup, Give Up Pad, Leave, frame readout
  • 08d0f9c Splitscreen e2e: gui_scales, sixteen and monitor on 100% displays and portrait monitors
  • 1ff8ce7 Merge branch 'split/fresh-mouse-controls' into split/fresh-controller-setup
  • eae0808 Keep offline guests separate from P1’s signed-in identity
  • 3edf7be Keep connection and account helper documentation together
  • ca17f7a Read profile ownership without borrowing the whole game
  • a0172fe Merge the native input ownership fix into controller Setup
  • 5ad2149 Exercise splitscreen ownership with real OS keyboard and mouse events
  • 47d4004 Check native camera control for both owners and controller menus
  • ee6bc63 Make native desktop input tests opt-in and always clean up their game

📊 Changes

17 files changed (+1391 additions, -55 deletions)

View changed files

📝 crates/horizon-client-render/src/options_ui.rs (+2 -0)
📝 crates/horizon-client-render/src/split_ui.rs (+297 -4)
📝 crates/horizon-client/assets/horizon/lang/en_us.json (+16 -0)
📝 crates/horizon-client/assets/horizon/lang/fr_fr.json (+15 -0)
📝 crates/horizon-client/src/game/pad_menu.rs (+28 -0)
📝 crates/horizon-client/src/game/remote.rs (+14 -2)
📝 crates/horizon-client/src/game/remote_chat.rs (+1 -1)
📝 crates/horizon-client/src/game/screens.rs (+3 -0)
📝 crates/horizon-client/src/game/split.rs (+43 -7)
➕ crates/horizon-client/src/game/split/frames.rs (+44 -0)
📝 crates/horizon-client/src/game/split/hud.rs (+12 -4)
📝 crates/horizon-client/src/game/split/pads.rs (+140 -24)
📝 crates/horizon-client/src/game/split/players.rs (+12 -0)
📝 crates/horizon-client/src/game/split/setup.rs (+17 -1)
📝 docs/extras.md (+10 -2)
➕ tools/native_input.py (+184 -0)
📝 tools/splitscreen_e2e.py (+553 -10)

📄 Description

🤖 Opened by martipops's AI agent (Codex, GPT-6), not by martipops personally.

What and why

A controller can pick up a player in Setup, cycle destinations, then drop it or cancel. Give Up Pad offers P1's controller to another player and restores it when an offer expires or joining is cancelled. Guests have Leave in their pause menus. An opt-in frame-time log helps inspect scaling.

Preserves main's controller-enabled and solo-rumble fixes. Offline guest profiles also stop borrowing P1's signed-in identity or profile textures. Adds the explicit macOS native-input regression and the remaining desktop scenario helpers; much of this increment is test coverage.

Part 4 of the splitscreen Setup series, on top of #6395 and #6397 (both merged). Replaces closed #4201. Refs #2054 and #3541.

Kind

  • feature: something new for players (listed under New in the release notes)

Suggested label: feature.

Size

17 files, +1391 −55. 747 of those lines are Python test tooling: the live scenarios in tools/splitscreen_e2e.py (three, live, leave, pausemenu, gui_scales, fullscreen, monitor, eight, sixteen and others) and the macOS native-input driver tools/native_input.py. The Rust change is ~640 lines, 127 of them split_ui.rs tests. Controller pickup, Give Up Pad and Leave share the pad routing in split/pads.rs, so they ship together. The last part, servers (#6399), stays a draft until this merges.

Vanilla reference

Horizon-only. Java Edition has no local splitscreen; world simulation uses the existing integrated-server and multiplayer paths.

Other projects' code

None. This ports the remaining pieces of the existing splitscreen series in this repository.

Localization

Give Up Pad, its tooltip and the held-player hints ("P2 picked up: left/right picks where…") are language keys in English and French.

Validation

  • Unit: cargo test -p horizon-client-render --lib split (67 tests) and the game-side split tests (14), Clippy -D warnings, rustfmt.
  • Live (tools/splitscreen_e2e.py, real windows, macOS Metal): the full suite (without the opt-in native_pointer) passed on the series head that contains this part, before #6395 and #6397 merged. Not rerun at this head: the Mac's screen was locked, and macOS doesn't redraw locked windows.
  • The opt-in native_pointer scenario passed real OS keyboard/mouse checks on the stack at 73f9ba613: P1 keeps control after P2 joins; only the owner moves and turns; P2's controller menu leaves P1 alone; held keys are released on handoff.
  • The author retested mouse focus with a physical controller.
  • Windows and Wayland have not been revalidated on this rebuild. Local vanilla parity was not run (CI's parity job picks the affected harnesses).

Self-check

Updated by martipops's AI agent (Claude Code, Claude Opus 5.5) after #6397 merged: main db813a1c3 merged in, so this diff is this part alone.

pr_ready (tools/pr_ready.py --quick --base refs/hz/main on Mac, against refs/hz/main at db813a1c3, 7 min 41 s)

Check Result
Scope ⚠️ 17 files, +1391 −55; 1434 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 610 passed (42 s)
rustfmt ✅ (5 s)
clippy ✅ (1 min 14 s)
tests: horizon-client, horizon-client-lib, horizon-client-render ❌ 3090 passed, 1 failed (5 min 26 s)
doc tests ✅ 0 passed (4 s)
content root tests ➖ content root untouched
mod API up to date ✅ (10 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

The one failing test, gfx::entity_skin::tests::the_shader_writes_what_the_cpu_reference_computes, came in with main's 3e642d0ac (a compute pass that poses entity models). It compares the GPU's vertices to a CPU reference bit for bit and differs in the last bit of a float on this Mac's Metal; this PR doesn't touch gfx.

🤖 Generated with Codex

🤖 Generated with Claude Code


🔄 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/6398 **Author:** [@martipops](https://github.com/martipops) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `split/fresh-controller-setup` --- ### 📝 Commits (10+) - [`e359da8`](https://github.com/horizon-rust/horizon/commit/e359da805f2431ffd0ec87c6db1c00fea13c13c9) Splitscreen: controller pick-up in Setup, Give Up Pad, Leave, frame readout - [`08d0f9c`](https://github.com/horizon-rust/horizon/commit/08d0f9c8d583f1abfe9f344aa6c063b3f9c4296b) Splitscreen e2e: gui_scales, sixteen and monitor on 100% displays and portrait monitors - [`1ff8ce7`](https://github.com/horizon-rust/horizon/commit/1ff8ce79766d5163299b1e6692d5d2da3c40dbd8) Merge branch 'split/fresh-mouse-controls' into split/fresh-controller-setup - [`eae0808`](https://github.com/horizon-rust/horizon/commit/eae08083a85206fd9a5be54cfdcf1001e54f72ce) Keep offline guests separate from P1’s signed-in identity - [`3edf7be`](https://github.com/horizon-rust/horizon/commit/3edf7be3ff251067c0557be40d913180b08498c0) Keep connection and account helper documentation together - [`ca17f7a`](https://github.com/horizon-rust/horizon/commit/ca17f7aa3eaf87601558dfec185cbcf32f4c060c) Read profile ownership without borrowing the whole game - [`a0172fe`](https://github.com/horizon-rust/horizon/commit/a0172fe3bf26e287cb18ef1106788992cc166d2e) Merge the native input ownership fix into controller Setup - [`5ad2149`](https://github.com/horizon-rust/horizon/commit/5ad2149330e3e78a7cc4d18ac69ed0210f1d7fc6) Exercise splitscreen ownership with real OS keyboard and mouse events - [`47d4004`](https://github.com/horizon-rust/horizon/commit/47d40049f4903582d496c265df2cc2950d2c5fa5) Check native camera control for both owners and controller menus - [`ee6bc63`](https://github.com/horizon-rust/horizon/commit/ee6bc633a6a6a49d231ce073c03424ec06e4a29c) Make native desktop input tests opt-in and always clean up their game ### 📊 Changes **17 files changed** (+1391 additions, -55 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/options_ui.rs` (+2 -0) 📝 `crates/horizon-client-render/src/split_ui.rs` (+297 -4) 📝 `crates/horizon-client/assets/horizon/lang/en_us.json` (+16 -0) 📝 `crates/horizon-client/assets/horizon/lang/fr_fr.json` (+15 -0) 📝 `crates/horizon-client/src/game/pad_menu.rs` (+28 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+14 -2) 📝 `crates/horizon-client/src/game/remote_chat.rs` (+1 -1) 📝 `crates/horizon-client/src/game/screens.rs` (+3 -0) 📝 `crates/horizon-client/src/game/split.rs` (+43 -7) ➕ `crates/horizon-client/src/game/split/frames.rs` (+44 -0) 📝 `crates/horizon-client/src/game/split/hud.rs` (+12 -4) 📝 `crates/horizon-client/src/game/split/pads.rs` (+140 -24) 📝 `crates/horizon-client/src/game/split/players.rs` (+12 -0) 📝 `crates/horizon-client/src/game/split/setup.rs` (+17 -1) 📝 `docs/extras.md` (+10 -2) ➕ `tools/native_input.py` (+184 -0) 📝 `tools/splitscreen_e2e.py` (+553 -10) </details> ### 📄 Description > 🤖 Opened by martipops's AI agent (Codex, GPT-6), not by martipops personally. ## What and why A controller can pick up a player in Setup, cycle destinations, then drop it or cancel. Give Up Pad offers P1's controller to another player and restores it when an offer expires or joining is cancelled. Guests have Leave in their pause menus. An opt-in frame-time log helps inspect scaling. Preserves main's controller-enabled and solo-rumble fixes. Offline guest profiles also stop borrowing P1's signed-in identity or profile textures. Adds the explicit macOS native-input regression and the remaining desktop scenario helpers; much of this increment is test coverage. Part 4 of the splitscreen Setup series, on top of #6395 and #6397 (both merged). Replaces closed #4201. Refs #2054 and #3541. ## Kind - [x] feature: something new for players (listed under New in the release notes) Suggested label: `feature`. ## Size 17 files, +1391 −55. 747 of those lines are Python test tooling: the live scenarios in `tools/splitscreen_e2e.py` (three, live, leave, pausemenu, gui_scales, fullscreen, monitor, eight, sixteen and others) and the macOS native-input driver `tools/native_input.py`. The Rust change is ~640 lines, 127 of them `split_ui.rs` tests. Controller pickup, Give Up Pad and Leave share the pad routing in `split/pads.rs`, so they ship together. The last part, servers (#6399), stays a draft until this merges. ## Vanilla reference Horizon-only. Java Edition has no local splitscreen; world simulation uses the existing integrated-server and multiplayer paths. ## Other projects' code None. This ports the remaining pieces of the existing splitscreen series in this repository. ## Localization Give Up Pad, its tooltip and the held-player hints ("P2 picked up: left/right picks where…") are language keys in English and French. ## Validation - Unit: `cargo test -p horizon-client-render --lib split` (67 tests) and the game-side split tests (14), Clippy `-D warnings`, rustfmt. - Live (`tools/splitscreen_e2e.py`, real windows, macOS Metal): the full suite (without the opt-in `native_pointer`) passed on the series head that contains this part, before #6395 and #6397 merged. Not rerun at this head: the Mac's screen was locked, and macOS doesn't redraw locked windows. - The opt-in `native_pointer` scenario passed real OS keyboard/mouse checks on the stack at `73f9ba613`: P1 keeps control after P2 joins; only the owner moves and turns; P2's controller menu leaves P1 alone; held keys are released on handoff. - The author retested mouse focus with a physical controller. - Windows and Wayland have not been revalidated on this rebuild. Local vanilla parity was not run (CI's parity job picks the affected harnesses). ## Self-check Updated by martipops's AI agent (Claude Code, Claude Opus 5.5) after #6397 merged: main `db813a1c3` merged in, so this diff is this part alone. **pr_ready** (`tools/pr_ready.py --quick --base refs/hz/main` on Mac, against refs/hz/main at db813a1c3, 7 min 41 s) | Check | Result | | --- | --- | | Scope | ⚠️ 17 files, +1391 −55; 1434 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 610 passed (42 s) | | rustfmt | ✅ (5 s) | | clippy | ✅ (1 min 14 s) | | tests: horizon-client, horizon-client-lib, horizon-client-render | ❌ 3090 passed, 1 failed (5 min 26 s) | | doc tests | ✅ 0 passed (4 s) | | content root tests | ➖ content root untouched | | mod API up to date | ✅ (10 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | The one failing test, `gfx::entity_skin::tests::the_shader_writes_what_the_cpu_reference_computes`, came in with main's `3e642d0ac` (a compute pass that poses entity models). It compares the GPU's vertices to a CPU reference bit for bit and differs in the last bit of a float on this Mac's Metal; this PR doesn't touch `gfx`. 🤖 Generated with [Codex](https://openai.com/codex/) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:27:59 +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#6849
No description provided.