mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 09:13:17 +02:00
Merge pull request #14272 from FlameSoulis/fix/spacenavigator
Update Spacemouse plugin + Proposal to main build
This commit is contained in:
commit
6bd08325ec
2 changed files with 7 additions and 3 deletions
|
@ -20,7 +20,7 @@
|
|||
|
||||
#include <controllers/UserInputMapper.h>
|
||||
|
||||
const QString SpacemouseManager::NAME { "Spacemouse" };
|
||||
const char* SpacemouseManager::NAME { "Spacemouse" };
|
||||
|
||||
const float MAX_AXIS = 75.0f; // max forward = 2x speed
|
||||
#define LOGITECH_VENDOR_ID 0x46d
|
||||
|
@ -116,8 +116,8 @@ controller::Input::NamedVector SpacemouseDevice::getAvailableInputs() const {
|
|||
makePair(TRANSLATE_X, "TranslateX"),
|
||||
makePair(TRANSLATE_Y, "TranslateY"),
|
||||
makePair(TRANSLATE_Z, "TranslateZ"),
|
||||
//makePair(ROTATE_X, "RotateX"),
|
||||
//makePair(ROTATE_Y, "RotateY"),
|
||||
makePair(ROTATE_X, "RotateX"),
|
||||
makePair(ROTATE_Y, "RotateY"),
|
||||
makePair(ROTATE_Z, "RotateZ"),
|
||||
|
||||
};
|
||||
|
|
|
@ -38,6 +38,10 @@ public:
|
|||
return _inputPlugins;
|
||||
}
|
||||
|
||||
virtual void destroyInputPlugins() override {
|
||||
_inputPlugins.clear();
|
||||
}
|
||||
|
||||
private:
|
||||
InputPluginList _inputPlugins;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue