Changeset 8729 for code/trunk/src/libraries/core/GUIManager.cc
- Timestamp:
- Jul 4, 2011, 2:47:44 AM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
-
code/trunk/src/libraries/core/GUIManager.cc
r8706 r8729 490 490 } 491 491 492 const std::string& GUIManager::createInputState(const std::string& name, TriBool::Value showCursor, TriBool::ValueuseKeyboard, bool bBlockJoyStick)492 const std::string& GUIManager::createInputState(const std::string& name, tribool showCursor, tribool useKeyboard, bool bBlockJoyStick) 493 493 { 494 494 InputState* state = InputManager::getInstance().createInputState(name); … … 506 506 #ifdef ORXONOX_PLATFORM_APPLE 507 507 // There is no non exclusive mode on OS X yet 508 state->setMouseExclusive( TriBool::True);509 #else 510 if (showCursor == TriBool::Dontcare)511 state->setMouseExclusive( TriBool::Dontcare);512 else if (GraphicsManager::getInstance().isFullScreen() || showCursor == TriBool::False)513 state->setMouseExclusive( TriBool::True);508 state->setMouseExclusive(true); 509 #else 510 if (showCursor == dontcare) 511 state->setMouseExclusive(dontcare); 512 else if (GraphicsManager::getInstance().isFullScreen() || showCursor == false) 513 state->setMouseExclusive(true); 514 514 else 515 state->setMouseExclusive( TriBool::False);516 #endif 517 518 if (showCursor == TriBool::True)515 state->setMouseExclusive(false); 516 #endif 517 518 if (showCursor == true) 519 519 state->setMouseHandler(this); 520 else if (showCursor == TriBool::False)520 else if (showCursor == false) 521 521 state->setMouseHandler(&InputHandler::EMPTY); 522 522 523 if (useKeyboard == TriBool::True)523 if (useKeyboard == true) 524 524 state->setKeyHandler(this); 525 else if (useKeyboard == TriBool::False)525 else if (useKeyboard == false) 526 526 state->setKeyHandler(&InputHandler::EMPTY); 527 527 … … 717 717 } 718 718 719 /** Helper method to get the developer's mode without having to export Core.h. 720 @see Core::inDevMode 721 */ 722 /*static*/ bool GUIManager::inDevMode() 723 { 724 return Core::getInstance().inDevMode(); 725 } 726 719 727 /** 720 728 @brief Callback of window event listener, called if the window is resized. Sets the display size of CEGUI.
Note: See TracChangeset
for help on using the changeset viewer.