mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 01:37:53 -06:00
ENABLE_3DCONNEXION_DEVICES -> Serialization of mouse device parameters into config
This commit is contained in:
parent
7007d81519
commit
a554304038
4 changed files with 86 additions and 7 deletions
|
@ -125,6 +125,12 @@ public:
|
|||
std::vector<std::string> get_recent_projects() const;
|
||||
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);
|
||||
#endif // ENABLE_3DCONNEXION_DEVICES
|
||||
|
||||
private:
|
||||
// Map of section, name -> value
|
||||
std::map<std::string, std::map<std::string, std::string>> m_storage;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue