use egui::{os::OperatingSystem, Modifiers};
pub const ZOOM_SCROLL_MODIFIER: egui::Modifiers = egui::Modifiers::COMMAND;
pub const ASPECT_SCROLL_MODIFIER: egui::Modifiers =
egui::Modifiers::ALT.plus(egui::Modifiers::COMMAND);
pub const HORIZONTAL_SCROLL_MODIFIER: egui::Modifiers = egui::Modifiers::SHIFT;
pub const DRAG_PAN2D_BUTTON: egui::PointerButton = egui::PointerButton::Primary;
pub const SELECTION_RECT_ZOOM_BUTTON: egui::PointerButton = egui::PointerButton::Secondary;
pub const MOVE_TIME_CURSOR_BUTTON: egui::PointerButton = egui::PointerButton::Secondary;
pub const DRAG_PAN3D_BUTTON: egui::PointerButton = egui::PointerButton::Secondary;
pub const ROTATE3D_BUTTON: egui::PointerButton = egui::PointerButton::Primary;
pub const ROLL_MOUSE: egui::PointerButton = egui::PointerButton::Middle;
pub const ROLL_MOUSE_ALT: egui::PointerButton = egui::PointerButton::Primary;
pub const ROLL_MOUSE_MODIFIER: egui::Modifiers = egui::Modifiers::ALT;
pub const SPEED_UP_3D_MODIFIER: egui::Modifiers = egui::Modifiers::SHIFT;
pub const TRACKED_OBJECT_RESTORE_KEY: egui::Key = egui::Key::Escape;
pub struct RuntimeModifiers {}
impl RuntimeModifiers {
pub fn slow_down(os: &OperatingSystem) -> Modifiers {
match os {
egui::os::OperatingSystem::Mac => egui::Modifiers::CTRL,
_ => egui::Modifiers::ALT,
}
}
}