mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 11:33:44 +02:00
Override getSubdeviceNames in OculusControllerManager
This commit is contained in:
parent
3147ea9e33
commit
ba7eac5281
2 changed files with 12 additions and 0 deletions
|
@ -117,6 +117,17 @@ void OculusControllerManager::stopHapticPulse(bool leftHand) {
|
|||
}
|
||||
}
|
||||
|
||||
QStringList OculusControllerManager::getSubdeviceNames() {
|
||||
QStringList devices;
|
||||
if (_touch) {
|
||||
devices << _touch->getName();
|
||||
}
|
||||
if (_remote) {
|
||||
devices << _remote->getName();
|
||||
}
|
||||
return devices;
|
||||
}
|
||||
|
||||
using namespace controller;
|
||||
|
||||
static const std::vector<std::pair<ovrButton, StandardButtonChannel>> BUTTON_MAP { {
|
||||
|
|
|
@ -27,6 +27,7 @@ public:
|
|||
const QString& getName() const override { return NAME; }
|
||||
|
||||
bool isHandController() const override { return _touch != nullptr; }
|
||||
QStringList getSubdeviceNames() override;
|
||||
|
||||
bool activate() override;
|
||||
void deactivate() override;
|
||||
|
|
Loading…
Reference in a new issue