[PR #2957] [MERGED] Let a mouse button toggle the cinematic camera #4710

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2957
Author: @kacpherek
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @ludovic111

Base: main ← Head: fix/smooth-camera-mouse


📝 Commits (1)

  • 7ab2b20 Let mouse buttons toggle cinematic camera

📊 Changes

1 file changed (+6 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+6 -0)

📄 Description

What and why

The Cinematic Camera key can be bound to a mouse button in the key bindings screen, but pressing that button in game did nothing, because only keyboard keys reached the toggle.

  • A mouse button bound to Cinematic Camera now switches the camera on and off while playing.
  • Keyboard bindings are unchanged.

Vanilla reference

  • KeyBindsScreen.java:77-85: a mouse button can be assigned to a binding.
  • KeyMapping.java:39-44: a binding matches mouse buttons as well as keys.
  • Minecraft.java:1969-1970: the smooth camera binding toggles smoothCamera when it is pressed.

Self-check

clippy and fmt pass for horizon-client. Not run in game.


🔄 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/2957 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/smooth-camera-mouse` --- ### 📝 Commits (1) - [`7ab2b20`](https://github.com/horizon-rust/horizon/commit/7ab2b20bd5424826010fc3df15da60ad37c3386d) Let mouse buttons toggle cinematic camera ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+6 -0) </details> ### 📄 Description ## What and why The Cinematic Camera key can be bound to a mouse button in the key bindings screen, but pressing that button in game did nothing, because only keyboard keys reached the toggle. - A mouse button bound to Cinematic Camera now switches the camera on and off while playing. - Keyboard bindings are unchanged. ## Vanilla reference - `KeyBindsScreen.java:77-85`: a mouse button can be assigned to a binding. - `KeyMapping.java:39-44`: a binding matches mouse buttons as well as keys. - `Minecraft.java:1969-1970`: the smooth camera binding toggles `smoothCamera` when it is pressed. ## Self-check clippy and fmt pass for horizon-client. Not run in game. --- <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:22 +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#4710
No description provided.