- Timestamp:
- May 30, 2011, 2:38:34 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/unity_build/src/libraries/core/GUIManager.cc
r8669 r8678 419 419 } 420 420 421 const std::string& GUIManager::createInputState(const std::string& name, TriBool::Value showCursor, TriBool::ValueuseKeyboard, bool bBlockJoyStick)421 const std::string& GUIManager::createInputState(const std::string& name, tribool showCursor, tribool useKeyboard, bool bBlockJoyStick) 422 422 { 423 423 InputState* state = InputManager::getInstance().createInputState(name); … … 435 435 #ifdef ORXONOX_PLATFORM_APPLE 436 436 // There is no non exclusive mode on OS X yet 437 state->setMouseExclusive( TriBool::True);438 #else 439 if (showCursor == TriBool::Dontcare)440 state->setMouseExclusive( TriBool::Dontcare);441 else if (GraphicsManager::getInstance().isFullScreen() || showCursor == TriBool::False)442 state->setMouseExclusive( TriBool::True);437 state->setMouseExclusive(true); 438 #else 439 if (showCursor == dontcare) 440 state->setMouseExclusive(dontcare); 441 else if (GraphicsManager::getInstance().isFullScreen() || showCursor == false) 442 state->setMouseExclusive(true); 443 443 else 444 state->setMouseExclusive( TriBool::False);445 #endif 446 447 if (showCursor == TriBool::True)444 state->setMouseExclusive(false); 445 #endif 446 447 if (showCursor == true) 448 448 state->setMouseHandler(this); 449 else if (showCursor == TriBool::False)449 else if (showCursor == false) 450 450 state->setMouseHandler(&InputHandler::EMPTY); 451 451 452 if (useKeyboard == TriBool::True)452 if (useKeyboard == true) 453 453 state->setKeyHandler(this); 454 else if (useKeyboard == TriBool::False)454 else if (useKeyboard == false) 455 455 state->setKeyHandler(&InputHandler::EMPTY); 456 456
Note: See TracChangeset
for help on using the changeset viewer.