3Dconnexion devices translation linearly dependent on zoom

This commit is contained in:
Enrico Turri 2020-01-16 10:17:07 +01:00
parent 9f7feedc8b
commit 3f2ccf08d2
6 changed files with 18 additions and 32 deletions

View file

@ -80,6 +80,7 @@ public:
#endif // !ENABLE_6DOF_CAMERA
double get_zoom() const { return m_zoom; }
double get_inv_zoom() const { assert(m_zoom != 0.0); return 1.0 / m_zoom; }
void update_zoom(double delta_zoom);
void set_zoom(double zoom);