most input plugins are not head or hand controllers

This commit is contained in:
Seth Alves 2017-06-02 16:31:08 -07:00
parent 8a4ccf5c46
commit 9654e007a6
6 changed files with 3 additions and 15 deletions

View file

@ -70,9 +70,6 @@ public:
bool isSupported() const override { return true; }
const QString getName() const override { return NAME; }
bool isHandController() const override { return false; }
bool isHeadController() const override { return false; }
void pluginFocusOutEvent() override { _inputDevice->focusOutEvent(); }
void pluginUpdate(float deltaTime, const controller::InputCalibrationData& inputCalibrationData) override;

View file

@ -39,9 +39,6 @@ public:
virtual bool isSupported() const override;
virtual const QString getName() const override { return NAME; }
bool isHandController() const override { return false; }
bool isHeadController() const override { return false; }
virtual void pluginFocusOutEvent() override { _inputDevice->focusOutEvent(); }
virtual void pluginUpdate(float deltaTime, const controller::InputCalibrationData& inputCalibrationData) override;

View file

@ -24,7 +24,7 @@ public:
// Some input plugins are comprised of multiple subdevices (SDL2, for instance).
// If an input plugin is only a single device, it will only return it's primary name.
virtual QStringList getSubdeviceNames() { return { getName() }; };
virtual bool isHandController() const = 0;
virtual bool isHeadController() const = 0;
virtual bool isHandController() const { return false; }
virtual bool isHeadController() const { return false; }
};

View file

@ -25,9 +25,6 @@ class NeuronPlugin : public InputPlugin {
public:
friend void FrameDataReceivedCallback(void* context, void* sender, _BvhDataHeaderEx* header, float* data);
bool isHandController() const override { return false; }
bool isHeadController() const override { return false; }
// Plugin functions
virtual void init() override;
virtual bool isSupported() const override;

View file

@ -27,8 +27,6 @@ public:
const QString getName() const override { return NAME; }
QStringList getSubdeviceNames() override;
bool isHandController() const override { return false; }
bool isHeadController() const override { return false; }
void init() override;
void deinit() override;

View file

@ -33,8 +33,7 @@ public:
// 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; }
bool isHeadController() const override { return false; }
// bool isHandController() const override { return true; }
virtual bool activate() override;
virtual void deactivate() override;