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
301//Returns a multiplier to be applied to the cursor range for the controllers301//Returns a multiplier to be applied to the cursor range for the controllers
302float SixenseManager::getCursorPixelRangeMult() const {302float SixenseManager::getCursorPixelRangeMult() const {
303 //scales (0,100) to (MINIMUM_PIXEL_RANGE_MULT, MAXIMUM_PIXEL_RANGE_MULT)303 //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;
305}305}
306 306
307#ifdef HAVE_SIXENSE307#ifdef HAVE_SIXENSE
@@ -459,7 +459,7 @@ void SixenseManager::emulateMouse(PalmData* palm, int index) { · 151 unmodified lines
459 459
460 unsigned int deviceID = index == 0 ? CONTROLLER_0_EVENT : CONTROLLER_1_EVENT;460 unsigned int deviceID = index == 0 ? CONTROLLER_0_EVENT : CONTROLLER_1_EVENT;
461 461
462 if (Menu::getInstance()->getInvertSixenseButtons()) {462 if (_invertButtons) {
463 bumperButton = Qt::LeftButton;463 bumperButton = Qt::LeftButton;
464 triggerButton = Qt::RightButton;464 triggerButton = Qt::RightButton;
465 } else {465 } else {