mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 18:44:00 +02:00
Cleaned up a small bit of code
This commit is contained in:
parent
84e01e6b25
commit
d993fd52f2
1 changed files with 3 additions and 8 deletions
|
@ -114,14 +114,9 @@ void SixenseManager::update(float deltaTime) {
|
|||
|
||||
// Emulate the mouse so we can use scripts
|
||||
if (Menu::getInstance()->isOptionChecked(MenuOption::SixenseMouseInput)) {
|
||||
if (Menu::getInstance()->isOptionChecked(MenuOption::SixenseLeftHanded)) {
|
||||
if (numActiveControllers == 1){
|
||||
emulateMouse(palm);
|
||||
}
|
||||
} else {
|
||||
if (numActiveControllers == 2) {
|
||||
emulateMouse(palm);
|
||||
}
|
||||
// Check if we are on the correct palm
|
||||
if ((Menu::getInstance()->isOptionChecked(MenuOption::SixenseLeftHanded) && numActiveControllers == 1) || numActiveControllers == 2) {
|
||||
emulateMouse(palm);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue