History

Move Sixense related members out of Menu

Moved to SixenseManager

Atlante45 committed 11 years ago

Commit 47babc21 parent ef5cfdc4 files · +19 −15Browse files

Showing the changes to interface/src/devices/SixenseManager.cpp (1 of 4 files). Show all

Unified · Split

interface/src/devices/SixenseManager.cpp+2−2
@@ -301,7 +301,7 @@ const float RANGE_MULT = (MAX_PIXEL_RANGE_MULT - MIN_PIXEL_RANGE_MULT) * 0.01; · 300 unmodified lines
301301 //Returns a multiplier to be applied to the cursor range for the controllers
302302 float SixenseManager::getCursorPixelRangeMult() const {
303303 //scales (0,100) to (MINIMUM_PIXEL_RANGE_MULT, MAXIMUM_PIXEL_RANGE_MULT)
304− return Menu::getInstance()->getSixenseReticleMoveSpeed() * RANGE_MULT + MIN_PIXEL_RANGE_MULT;
304+ return _reticleMoveSpeed * RANGE_MULT + MIN_PIXEL_RANGE_MULT;
305305 }
306306
307307 #ifdef HAVE_SIXENSE
@@ -459,7 +459,7 @@ void SixenseManager::emulateMouse(PalmData* palm, int index) { · 151 unmodified lines
459459
460460 unsigned int deviceID = index == 0 ? CONTROLLER_0_EVENT : CONTROLLER_1_EVENT;
461461
462− if (Menu::getInstance()->getInvertSixenseButtons()) {
462+ if (_invertButtons) {
463463 bumperButton = Qt::LeftButton;
464464 triggerButton = Qt::RightButton;
465465 } else {