[PR #2924] [MERGED] Options: add Java 26.3 controls #4687

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2924
Author: @elythepreciouscat
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @levzzz5154

Base: main ← Head: feat/vanilla-controls-26-3


📝 Commits (5)

  • 80df208 Options: add Java 26.3 controls
  • 6bb648d Controls: the three switches nothing reads yet show as unavailable
  • 2ee238e Merge #2931 into #2924: both add vanilla 26.3 options to options_ui.rs
  • c48c2f2 Merge main into this branch
  • e932a2d Merge remote-tracking branch 'origin/main' into upd/2924

📊 Changes

5 files changed (+155 additions, -9 deletions)

View changed files

📝 crates/horizon-client-render/src/options_ui.rs (+105 -5)
📝 crates/horizon-client-render/src/settings.rs (+25 -0)
📝 crates/horizon-client/src/game.rs (+2 -1)
📝 crates/horizon-client/src/game/remote.rs (+2 -1)
📝 crates/horizon-client/src/motion.rs (+21 -2)

📄 Description

What and why

Java Edition 26.3 adds several controls that were missing from Horizon's Controls screen. This adds the vanilla controls in their Java order:

  • Toggle Attack and Toggle Use, with the same Hold/Toggle labels as Toggle Crouch and Toggle Sprint.
  • Auto-Jump and the configurable Sprint Window (0–10, default 7).
  • Quit Shortcuts and Operator Items Tab.
  • The macOS-only Ctrl-click emulates right-click option, matching Java's platform guard.

The new values are persisted in options.txt, and the configured Sprint Window is used by both local and remote player motion.

Vanilla reference

  • net.minecraft.client.gui.screens.options.ControlsScreen.options — the control list and its order.
  • net.minecraft.client.Options — defaults, ranges and option labels.
  • net.minecraft.client.InputQuirks — the macOS-only Ctrl-click option.

Self-check

  • cargo fmt --all -- --check — pass
  • git show --check --oneline HEAD — pass
  • cargo check -p horizon-client --lib — pass
  • cargo check -p horizon-client --tests — pass
  • Launched the client from a fresh temporary home and verified the Controls screen on Linux, including Sprint Window, Quit Shortcuts and Operator Items Tab.

🔄 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/2924 **Author:** [@elythepreciouscat](https://github.com/elythepreciouscat) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `feat/vanilla-controls-26-3` --- ### 📝 Commits (5) - [`80df208`](https://github.com/horizon-rust/horizon/commit/80df20837bd3d4f93eb78cc4da80acbc1e9f0326) Options: add Java 26.3 controls - [`6bb648d`](https://github.com/horizon-rust/horizon/commit/6bb648db1e2003f4167220a767963dc5327cda48) Controls: the three switches nothing reads yet show as unavailable - [`2ee238e`](https://github.com/horizon-rust/horizon/commit/2ee238e5f1a5eb6ba34dc6e7cb45cc2f24b8c57a) Merge #2931 into #2924: both add vanilla 26.3 options to options_ui.rs - [`c48c2f2`](https://github.com/horizon-rust/horizon/commit/c48c2f21674ba799589054064a0188a4cb3b35fe) Merge main into this branch - [`e932a2d`](https://github.com/horizon-rust/horizon/commit/e932a2da6195d45f82f34573bd854bddd5850eec) Merge remote-tracking branch 'origin/main' into upd/2924 ### 📊 Changes **5 files changed** (+155 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/options_ui.rs` (+105 -5) 📝 `crates/horizon-client-render/src/settings.rs` (+25 -0) 📝 `crates/horizon-client/src/game.rs` (+2 -1) 📝 `crates/horizon-client/src/game/remote.rs` (+2 -1) 📝 `crates/horizon-client/src/motion.rs` (+21 -2) </details> ### 📄 Description ## What and why Java Edition 26.3 adds several controls that were missing from Horizon's Controls screen. This adds the vanilla controls in their Java order: - Toggle Attack and Toggle Use, with the same Hold/Toggle labels as Toggle Crouch and Toggle Sprint. - Auto-Jump and the configurable Sprint Window (0–10, default 7). - Quit Shortcuts and Operator Items Tab. - The macOS-only Ctrl-click emulates right-click option, matching Java's platform guard. The new values are persisted in `options.txt`, and the configured Sprint Window is used by both local and remote player motion. ## Vanilla reference - `net.minecraft.client.gui.screens.options.ControlsScreen.options` — the control list and its order. - `net.minecraft.client.Options` — defaults, ranges and option labels. - `net.minecraft.client.InputQuirks` — the macOS-only Ctrl-click option. ## Self-check - `cargo fmt --all -- --check` — pass - `git show --check --oneline HEAD` — pass - `cargo check -p horizon-client --lib` — pass - `cargo check -p horizon-client --tests` — pass - Launched the client from a fresh temporary home and verified the Controls screen on Linux, including Sprint Window, Quit Shortcuts and Operator Items Tab. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:11 +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#4687
No description provided.