mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-25 05:04:58 +00:00
Add ability to assign None/Pan/Rotate to mouse buttons (#10736)
* Add logic to handle the left, middle and right buttons being assigned to do nothing, pan or rotate * Add entries for setting the drag actions to preferences * Allow the label text in preferences to wrap * Show mouse mappings in Help -> Keyboard Shortcuts * Re-add preferences in updated layout * Add camera mouse options under camera * Change mouse action strings to use L() for localization * Display "None" when it is selected instead of blank in keyboard shortcuts --------- Co-authored-by: Rob O <robertolabode@gmail.com> Co-authored-by: Noisyfox <timemanager.rick@gmail.com>
This commit is contained in:
@@ -212,8 +212,14 @@ void AppConfig::set_defaults()
|
||||
if (get("camera_navigation_style").empty())
|
||||
set("camera_navigation_style", "0");
|
||||
|
||||
if (get("swap_mouse_buttons").empty())
|
||||
set_bool("swap_mouse_buttons", false);
|
||||
if (get("left_mouse_drag_action").empty())
|
||||
set("left_mouse_drag_action", "2");
|
||||
|
||||
if (get("middle_mouse_drag_action").empty())
|
||||
set("middle_mouse_drag_action", "1");
|
||||
|
||||
if (get("right_mouse_drag_action").empty())
|
||||
set("right_mouse_drag_action", "1");
|
||||
|
||||
if (get("reverse_mouse_wheel_zoom").empty())
|
||||
set_bool("reverse_mouse_wheel_zoom", false);
|
||||
|
||||
Reference in New Issue
Block a user