Let mouse buttons toggle cinematic camera

This commit is contained in:
Kacpherek committed 2026-10-27 22:02:17 +01:00
1 parent 1feb28c045
commit 7ab2b20bd5
1 file changed
+6
+6
View File
@@ -12916,6 +12916,12 @@ impl ApplicationHandler for Game<'_> {
}
self.extras_mouse(button, pressed);
self.mod_mouse_key(button, pressed);
if pressed
&& self.settings.keys.get("key.smoothCamera")
== horizon_client::keybinds::mouse_name(button)
{
self.smooth_camera = !self.smooth_camera;
}
for mapped in self.settings.keys.translate_mouse_all(button) {
match mapped {
Err(b) => self.play_mouse(b, pressed)?,