mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 09:17:29 +02:00
...and don't turn on/off UI from hydra
This commit is contained in:
parent
1ce201c04f
commit
06b22cf605
1 changed files with 0 additions and 26 deletions
|
@ -571,8 +571,6 @@ void ApplicationOverlay::renderControllerPointers() {
|
||||||
static quint64 pressedTime[NUMBER_OF_MAGNIFIERS] = { 0ULL, 0ULL, 0ULL };
|
static quint64 pressedTime[NUMBER_OF_MAGNIFIERS] = { 0ULL, 0ULL, 0ULL };
|
||||||
static bool isPressed[NUMBER_OF_MAGNIFIERS] = { false, false, false };
|
static bool isPressed[NUMBER_OF_MAGNIFIERS] = { false, false, false };
|
||||||
static bool stateWhenPressed[NUMBER_OF_MAGNIFIERS] = { false, false, false };
|
static bool stateWhenPressed[NUMBER_OF_MAGNIFIERS] = { false, false, false };
|
||||||
static bool triggerPressed[NUMBER_OF_MAGNIFIERS] = { false, false, false };
|
|
||||||
static bool bumperPressed[NUMBER_OF_MAGNIFIERS] = { false, false, false };
|
|
||||||
|
|
||||||
const HandData* handData = Application::getInstance()->getAvatar()->getHandData();
|
const HandData* handData = Application::getInstance()->getAvatar()->getHandData();
|
||||||
|
|
||||||
|
@ -613,30 +611,6 @@ void ApplicationOverlay::renderControllerPointers() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Check for UI active toggle
|
|
||||||
if (palmData->getTrigger() == 1.0f) {
|
|
||||||
if (!triggerPressed[index]) {
|
|
||||||
if (bumperPressed[index]) {
|
|
||||||
Menu::getInstance()->setIsOptionChecked(MenuOption::UserInterface,
|
|
||||||
!Menu::getInstance()->isOptionChecked(MenuOption::UserInterface));
|
|
||||||
}
|
|
||||||
triggerPressed[index] = true;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
triggerPressed[index] = false;
|
|
||||||
}
|
|
||||||
if ((controllerButtons & BUTTON_FWD)) {
|
|
||||||
if (!bumperPressed[index]) {
|
|
||||||
if (triggerPressed[index]) {
|
|
||||||
Menu::getInstance()->setIsOptionChecked(MenuOption::UserInterface,
|
|
||||||
!Menu::getInstance()->isOptionChecked(MenuOption::UserInterface));
|
|
||||||
}
|
|
||||||
bumperPressed[index] = true;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
bumperPressed[index] = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
//if we have the oculus, we should make the cursor smaller since it will be
|
//if we have the oculus, we should make the cursor smaller since it will be
|
||||||
//magnified
|
//magnified
|
||||||
if (OculusManager::isConnected()) {
|
if (OculusManager::isConnected()) {
|
||||||
|
|
Loading…
Reference in a new issue