mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 16:14:35 +02:00
Update hand controller detection
This commit is contained in:
parent
79ea7c4075
commit
d589812c52
2 changed files with 4 additions and 2 deletions
|
@ -31,7 +31,9 @@ public:
|
||||||
virtual const QString& getName() const override { return NAME; }
|
virtual const QString& getName() const override { return NAME; }
|
||||||
virtual const QString& getID() const override { return HYDRA_ID_STRING; }
|
virtual const QString& getID() const override { return HYDRA_ID_STRING; }
|
||||||
|
|
||||||
bool isHandController() const override { return true; }
|
// Sixense always seems to initialize even if the hydras are not present. Is there
|
||||||
|
// a way we can properly detect whether the hydras are present?
|
||||||
|
bool isHandController() const override { return false; }
|
||||||
|
|
||||||
virtual bool activate() override;
|
virtual bool activate() override;
|
||||||
virtual void deactivate() override;
|
virtual void deactivate() override;
|
||||||
|
|
|
@ -26,7 +26,7 @@ public:
|
||||||
bool isSupported() const override;
|
bool isSupported() const override;
|
||||||
const QString& getName() const override { return NAME; }
|
const QString& getName() const override { return NAME; }
|
||||||
|
|
||||||
bool isHandController() const override { return true; }
|
bool isHandController() const override { return _touch != nullptr; }
|
||||||
|
|
||||||
bool activate() override;
|
bool activate() override;
|
||||||
void deactivate() override;
|
void deactivate() override;
|
||||||
|
|
Loading…
Reference in a new issue