mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 23:14:34 +02:00
Configure Leap controller per HMD option when controller is created
This commit is contained in:
parent
5c406a0e06
commit
6375e42d88
1 changed files with 8 additions and 1 deletions
|
@ -8,8 +8,9 @@
|
||||||
// Distributed under the Apache License, Version 2.0.
|
// Distributed under the Apache License, Version 2.0.
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
//
|
//
|
||||||
#include "SharedUtil.h"
|
|
||||||
#include "Leapmotion.h"
|
#include "Leapmotion.h"
|
||||||
|
#include "Menu.h"
|
||||||
|
#include "SharedUtil.h"
|
||||||
|
|
||||||
const int PALMROOT_NUM_JOINTS = 3;
|
const int PALMROOT_NUM_JOINTS = 3;
|
||||||
const int FINGER_NUM_JOINTS = 4;
|
const int FINGER_NUM_JOINTS = 4;
|
||||||
|
@ -101,6 +102,12 @@ Leapmotion::Leapmotion() :
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_LEAPMOTION
|
||||||
|
if (Menu::getInstance()->isOptionChecked(MenuOption::LeapMotionOnHMD)) {
|
||||||
|
_controller.setPolicyFlags(Leap::Controller::POLICY_OPTIMIZE_HMD);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
Leapmotion::~Leapmotion() {
|
Leapmotion::~Leapmotion() {
|
||||||
|
|
Loading…
Reference in a new issue