diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2020-01-03 16:42:52 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2020-01-03 16:42:52 +0300 |
commit | 83cbe1dd3307f1698d4643edf9f9e2af214fac36 (patch) | |
tree | 6593df3bf46c42cb183ed7afbdc6be181c69952c /src/slic3r/GUI/AppConfig.hpp | |
parent | a4ad0a0925bbe52d2a1f69510664a69251caac53 (diff) |
3DConnexion devices' Y axis used for zoom in/zoom out
Diffstat (limited to 'src/slic3r/GUI/AppConfig.hpp')
-rw-r--r-- | src/slic3r/GUI/AppConfig.hpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/slic3r/GUI/AppConfig.hpp b/src/slic3r/GUI/AppConfig.hpp index 355370450..b432367b6 100644 --- a/src/slic3r/GUI/AppConfig.hpp +++ b/src/slic3r/GUI/AppConfig.hpp @@ -131,11 +131,18 @@ public: std::vector<std::string> get_recent_projects() const; void set_recent_projects(const std::vector<std::string>& recent_projects); - void set_mouse_device(const std::string& name, double translation_speed, double translation_deadzone, float rotation_speed, float rotation_deadzone); - bool get_mouse_device_translation_speed(const std::string& name, double& speed); +#if ENABLE_3DCONNEXION_Y_AS_ZOOM + void set_mouse_device(const std::string& name, double translation_speed, double translation_deadzone, float rotation_speed, float rotation_deadzone, double zoom_speed); +#else + void set_mouse_device(const std::string& name, double translation_speed, double translation_deadzone, float rotation_speed, float rotation_deadzone); +#endif // ENABLE_3DCONNEXION_Y_AS_ZOOM + bool get_mouse_device_translation_speed(const std::string& name, double& speed); bool get_mouse_device_translation_deadzone(const std::string& name, double& deadzone); bool get_mouse_device_rotation_speed(const std::string& name, float& speed); bool get_mouse_device_rotation_deadzone(const std::string& name, float& deadzone); +#if ENABLE_3DCONNEXION_Y_AS_ZOOM + bool get_mouse_device_zoom_speed(const std::string& name, double& speed); +#endif // ENABLE_3DCONNEXION_Y_AS_ZOOM static const std::string SECTION_FILAMENTS; static const std::string SECTION_MATERIALS; |