- Timestamp:
- Mar 22, 2010, 2:47:10 PM (15 years ago)
- Location:
- code/branches/gamestates2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamestates2
- Property svn:mergeinfo changed
/code/branches/gamestate merged: 6441-6442,6459,6537,6544-6546,6548,6564,6566-6567,6569,6571-6572
- Property svn:mergeinfo changed
-
code/branches/gamestates2/src/libraries/core/input/InputManager.cc
r6422 r6595 87 87 , oisInputManager_(0) 88 88 , devices_(2) 89 , mouseMode_(MouseMode::Nonexclusive)89 , exclusiveMouse_(TriBool::False) 90 90 , emptyState_(0) 91 91 , calibratorCallbackHandler_(0) … … 98 98 99 99 if (GraphicsManager::getInstance().isFullScreen()) 100 mouseMode_ = MouseMode::Exclusive;100 exclusiveMouse_ = TriBool::True; 101 101 this->loadDevices(); 102 102 … … 155 155 paramList.insert(std::make_pair("w32_keyboard", "DISCL_FOREGROUND")); 156 156 paramList.insert(std::make_pair("w32_mouse", "DISCL_FOREGROUND")); 157 if ( mouseMode_ == MouseMode::Exclusive || GraphicsManager::getInstance().isFullScreen())157 if (exclusiveMouse_ == TriBool::True || GraphicsManager::getInstance().isFullScreen()) 158 158 { 159 159 // Disable Windows key plus special keys (like play, stop, next, etc.) … … 168 168 paramList.insert(std::make_pair("XAutoRepeatOn", "true")); 169 169 170 if ( mouseMode_ == MouseMode::Exclusive || GraphicsManager::getInstance().isFullScreen())170 if (exclusiveMouse_ == TriBool::True || GraphicsManager::getInstance().isFullScreen()) 171 171 { 172 172 if (CommandLineParser::getValue("keyboard_no_grab").getBool()) … … 504 504 505 505 // Check whether we have to change the mouse mode 506 MouseMode::Value requestedMode = MouseMode::Dontcare;506 TriBool::Value requestedMode = TriBool::Dontcare; 507 507 std::vector<InputState*>& mouseStates = devices_[InputDeviceEnumerator::Mouse]->getStateListRef(); 508 508 if (mouseStates.empty()) 509 requestedMode = MouseMode::Nonexclusive;509 requestedMode = TriBool::False; 510 510 else 511 requestedMode = mouseStates.front()->getMouse Mode();512 if (requestedMode != MouseMode::Dontcare && mouseMode_ != requestedMode)513 { 514 mouseMode_ = requestedMode;511 requestedMode = mouseStates.front()->getMouseExclusive(); 512 if (requestedMode != TriBool::Dontcare && exclusiveMouse_ != requestedMode) 513 { 514 exclusiveMouse_ = requestedMode; 515 515 if (!GraphicsManager::getInstance().isFullScreen()) 516 516 this->reloadInternal();
Note: See TracChangeset
for help on using the changeset viewer.