[PR #2931] [MERGED] Options: add Java 26.3 mouse settings #4689

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2931
Author: @elythepreciouscat
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @rdbtCVS

Base: main ← Head: feat/vanilla-mouse-settings-26-3


📝 Commits (1)

  • 127434c Options: add Java 26.3 mouse settings

📊 Changes

3 files changed (+73 additions, -10 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+8 -3)
📝 crates/horizon-client/src/options_ui.rs (+57 -6)
📝 crates/horizon-client/src/settings.rs (+8 -1)

📄 Description

What and why

Java Edition 26.3's Mouse Settings screen has six vanilla widgets. Horizon exposed only four of them, so this adds the missing Invert Mouse X and Allow Cursor Changes settings and keeps the complete list in Java's order:

  1. Sensitivity
  2. Mouse Wheel Sensitivity
  3. Discrete Mouse Scroll
  4. Invert Mouse X
  5. Invert Mouse Y
  6. Allow Cursor Changes

Invert Mouse X was already persisted and applied to camera movement; it is now visible in the screen. Allow Cursor Changes is persisted with Java's default of true and makes the window use the default arrow when disabled, matching Window.selectCursor.

Vanilla reference

  • Decompiled net.minecraft.client.gui.screens.options.MouseSettingsScreen.options from the Java Edition 26.3 client jar for the exact six-option order.
  • net.minecraft.client.Options.allowCursorChanges: default true, persisted as allowCursorChanges and applied through Window.setAllowCursorChanges.
  • com.mojang.blaze3d.platform.Window.selectCursor: uses the default cursor when cursor changes are disabled.

Self-check

  • cargo fmt --all -- --check — pass
  • git diff --check — pass
  • cargo check -p horizon-client --bin horizon-client — pass
  • cargo test -p horizon-client --lib options_ui::tests::mouse_settings -- --nocapture — 2 passed
  • git show --check --oneline HEAD — pass

🔄 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/2931 **Author:** [@elythepreciouscat](https://github.com/elythepreciouscat) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `feat/vanilla-mouse-settings-26-3` --- ### 📝 Commits (1) - [`127434c`](https://github.com/horizon-rust/horizon/commit/127434c46c90c93ce6dba87fda0e9797d2eb5a34) Options: add Java 26.3 mouse settings ### 📊 Changes **3 files changed** (+73 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+8 -3) 📝 `crates/horizon-client/src/options_ui.rs` (+57 -6) 📝 `crates/horizon-client/src/settings.rs` (+8 -1) </details> ### 📄 Description ## What and why Java Edition 26.3's Mouse Settings screen has six vanilla widgets. Horizon exposed only four of them, so this adds the missing Invert Mouse X and Allow Cursor Changes settings and keeps the complete list in Java's order: 1. Sensitivity 2. Mouse Wheel Sensitivity 3. Discrete Mouse Scroll 4. Invert Mouse X 5. Invert Mouse Y 6. Allow Cursor Changes Invert Mouse X was already persisted and applied to camera movement; it is now visible in the screen. Allow Cursor Changes is persisted with Java's default of `true` and makes the window use the default arrow when disabled, matching `Window.selectCursor`. ## Vanilla reference - Decompiled `net.minecraft.client.gui.screens.options.MouseSettingsScreen.options` from the Java Edition 26.3 client jar for the exact six-option order. - `net.minecraft.client.Options.allowCursorChanges`: default `true`, persisted as `allowCursorChanges` and applied through `Window.setAllowCursorChanges`. - `com.mojang.blaze3d.platform.Window.selectCursor`: uses the default cursor when cursor changes are disabled. ## Self-check - `cargo fmt --all -- --check` — pass - `git diff --check` — pass - `cargo check -p horizon-client --bin horizon-client` — pass - `cargo test -p horizon-client --lib options_ui::tests::mouse_settings -- --nocapture` — 2 passed - `git show --check --oneline HEAD` — pass --- <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:12 +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#4689
No description provided.