ENABLE_3DCONNEXION_DEVICES -> Added translation and rotation customizable parameter deadzone

This commit is contained in:
Enrico Turri 2019-10-08 14:32:05 +02:00
parent b7db5a9558
commit 4ec6199ef1
5 changed files with 116 additions and 34 deletions

View file

@ -132,9 +132,11 @@ public:
void set_recent_projects(const std::vector<std::string>& recent_projects);
#if ENABLE_3DCONNEXION_DEVICES
void set_mouse_device(const std::string& name, double translation_speed, float rotation_speed);
bool get_mouse_device_translation_speed(const std::string& name, double& translation_speed);
bool get_mouse_device_rotation_speed(const std::string& name, float& rotation_speed);
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);
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);
#endif // ENABLE_3DCONNEXION_DEVICES
static const std::string SECTION_FILAMENTS;