mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
ENABLE_3DCONNEXION_DEVICES -> Another small refactoring of Mouse3DController
This commit is contained in:
parent
243cb5d524
commit
1d463fc23f
2 changed files with 21 additions and 27 deletions
|
@ -39,10 +39,6 @@ class Mouse3DController
|
|||
void set_button(unsigned int id) { m_buttons.push_back(id); }
|
||||
void reset_buttons() { return m_buttons.clear(); }
|
||||
|
||||
const Vec3d& get_translation() const { return m_translation; }
|
||||
const Vec3f& get_rotation() const { return m_rotation; }
|
||||
const std::vector<unsigned int>& get_buttons() const { return m_buttons; }
|
||||
|
||||
bool has_translation() const { return !m_translation.isApprox(Vec3d::Zero()); }
|
||||
bool has_rotation() const { return !m_rotation.isApprox(Vec3f::Zero()); }
|
||||
bool has_translation_or_rotation() const { return !m_translation.isApprox(Vec3d::Zero()) && !m_rotation.isApprox(Vec3f::Zero()); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue