Move toggleSixense out of #if HAVE_SIXENSE

This commit is contained in:
Atlante45 2015-01-18 20:37:30 -08:00
parent 967028e5cf
commit 3dfc725101

View file

@ -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