Cleaned up a small bit of code

This commit is contained in:
barnold1953 2014-06-11 17:27:00 -07:00
parent 84e01e6b25
commit d993fd52f2

View file

@ -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);
}
}