Let mouse buttons toggle cinematic camera
This commit is contained in:
@@ -12916,6 +12916,12 @@ impl ApplicationHandler for Game<'_> {
|
|||||||
}
|
}
|
||||||
self.extras_mouse(button, pressed);
|
self.extras_mouse(button, pressed);
|
||||||
self.mod_mouse_key(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) {
|
for mapped in self.settings.keys.translate_mouse_all(button) {
|
||||||
match mapped {
|
match mapped {
|
||||||
Err(b) => self.play_mouse(b, pressed)?,
|
Err(b) => self.play_mouse(b, pressed)?,
|
||||||
|
|||||||
Reference in New Issue
Block a user