Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 30, 2011, 2:38:34 AM (13 years ago)
Author:
rgrieder
Message:

Replaced TriBool with a modified version of boost::tribool. The main reason was that 'True' and 'False' had to be replaced because of macro collisions.
So why not use the real true and false with a third state? That's what boost tribool did, so I changed that implementation to fit our needs and change its behavior.
It's also safer to use because it avoids unwanted implicit conversions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/unity_build/src/orxonox/gamestates/GSLevel.cc

    r8079 r8678  
    7777        {
    7878            gameInputState_ = InputManager::getInstance().createInputState("game");
    79             gameInputState_->setMouseExclusive(TriBool::True);
     79            gameInputState_->setMouseExclusive(true);
    8080            gameInputState_->setHandler(KeyBinderManager::getInstance().getDefaultAsHandler());
    8181            KeyBinderManager::getInstance().setToDefault();
    8282
    8383            guiMouseOnlyInputState_ = InputManager::getInstance().createInputState("guiMouseOnly");
    84             guiMouseOnlyInputState_->setMouseExclusive(TriBool::True);
     84            guiMouseOnlyInputState_->setMouseExclusive(true);
    8585            guiMouseOnlyInputState_->setMouseHandler(&GUIManager::getInstance());
    8686
Note: See TracChangeset for help on using the changeset viewer.