mirror of
https://github.com/overte-org/overte.git
synced 2025-06-19 14:59:58 +02:00
Move toggleSixense out of #if HAVE_SIXENSE
This commit is contained in:
parent
967028e5cf
commit
3dfc725101
1 changed files with 9 additions and 9 deletions
|
@ -304,6 +304,15 @@ float SixenseManager::getCursorPixelRangeMult() const {
|
||||||
return _reticleMoveSpeed * RANGE_MULT + MIN_PIXEL_RANGE_MULT;
|
return _reticleMoveSpeed * RANGE_MULT + MIN_PIXEL_RANGE_MULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SixenseManager::toggleSixense(bool shouldEnable) {
|
||||||
|
if (shouldEnable && !isInitialized()) {
|
||||||
|
initialize();
|
||||||
|
setFilter(Menu::getInstance()->isOptionChecked(MenuOption::FilterSixense));
|
||||||
|
setLowVelocityFilter(Menu::getInstance()->isOptionChecked(MenuOption::LowVelocityFilter));
|
||||||
|
}
|
||||||
|
setIsEnabled(shouldEnable);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef HAVE_SIXENSE
|
#ifdef HAVE_SIXENSE
|
||||||
|
|
||||||
// the calibration sequence is:
|
// the calibration sequence is:
|
||||||
|
@ -568,14 +577,5 @@ void SixenseManager::emulateMouse(PalmData* palm, int index) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SixenseManager::toggleSixense(bool shouldEnable) {
|
|
||||||
if (shouldEnable && !isInitialized()) {
|
|
||||||
initialize();
|
|
||||||
setFilter(Menu::getInstance()->isOptionChecked(MenuOption::FilterSixense));
|
|
||||||
setLowVelocityFilter(Menu::getInstance()->isOptionChecked(MenuOption::LowVelocityFilter));
|
|
||||||
}
|
|
||||||
setIsEnabled(shouldEnable);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // HAVE_SIXENSE
|
#endif // HAVE_SIXENSE
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue