mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
most input plugins are not head or hand controllers
This commit is contained in:
parent
8a4ccf5c46
commit
9654e007a6
6 changed files with 3 additions and 15 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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; }
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue