Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 4, 2011, 2:47:44 AM (13 years ago)
Author:
rgrieder
Message:

Merged unity_build branch back to trunk.

Features:

  • Implemented fully automatic build units to speed up compilation if requested
  • Added DOUT macro for quick debug output
  • Activated text colouring in the POSIX IOConsole
  • DeclareToluaInterface is not necessary anymore

Improvements:

  • Output levels now change appropriately when switch back and forth from dev mode
  • Log level for the file output is now also correct during startup
  • Removed some header file dependencies in core and tools to speed up compilation

no more file for command line options

  • Improved util::tribool by adapting some concepts from boost::tribool

Regressions:

  • It is not possible anymore to specify command line arguments in an extra file because we've got config values for that purpose.
Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/libraries/core/GUIManager.cc

    r8706 r8729  
    490490    }
    491491
    492     const std::string& GUIManager::createInputState(const std::string& name, TriBool::Value showCursor, TriBool::Value useKeyboard, bool bBlockJoyStick)
     492    const std::string& GUIManager::createInputState(const std::string& name, tribool showCursor, tribool useKeyboard, bool bBlockJoyStick)
    493493    {
    494494        InputState* state = InputManager::getInstance().createInputState(name);
     
    506506#ifdef ORXONOX_PLATFORM_APPLE
    507507        // 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);
    514514        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)
    519519            state->setMouseHandler(this);
    520         else if (showCursor == TriBool::False)
     520        else if (showCursor == false)
    521521            state->setMouseHandler(&InputHandler::EMPTY);
    522522
    523         if (useKeyboard == TriBool::True)
     523        if (useKeyboard == true)
    524524            state->setKeyHandler(this);
    525         else if (useKeyboard == TriBool::False)
     525        else if (useKeyboard == false)
    526526            state->setKeyHandler(&InputHandler::EMPTY);
    527527
     
    717717    }
    718718
     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
    719727    /**
    720728        @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.