Skip to content

Commit

Permalink
camera slow down key is Alt on non macos systems
Browse files Browse the repository at this point in the history
  • Loading branch information
hemosphere committed Aug 20, 2023
1 parent a55e884 commit 9b47c4d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/re_space_view/src/controls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ pub const ROLL_MOUSE_MODIFIER: egui::Modifiers = egui::Modifiers::ALT;
pub const SPEED_UP_3D_MODIFIER: egui::Modifiers = egui::Modifiers::SHIFT;

/// Which modifier slows down the 3D camera movement.
#[cfg(target_os = "macos")]
pub const SLOW_DOWN_3D_MODIFIER: egui::Modifiers = egui::Modifiers::CTRL;

#[cfg(not(target_os = "macos"))]
pub const SLOW_DOWN_3D_MODIFIER: egui::Modifiers = egui::Modifiers::ALT;

/// Key to restore the camera.
pub const TRACKED_CAMERA_RESTORE_KEY: egui::Key = egui::Key::Escape;

Expand Down

0 comments on commit 9b47c4d

Please sign in to comment.