Update hand controller detection

This commit is contained in:
Ryan Huffman 2016-10-04 21:35:55 -07:00
parent 79ea7c4075
commit d589812c52
2 changed files with 4 additions and 2 deletions

View file

@ -31,7 +31,9 @@ public:
virtual const QString& getName() const override { return NAME; }
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 void deactivate() override;

View file

@ -26,7 +26,7 @@ public:
bool isSupported() const override;
const QString& getName() const override { return NAME; }
bool isHandController() const override { return true; }
bool isHandController() const override { return _touch != nullptr; }
bool activate() override;
void deactivate() override;