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/libraries/core/input/InputManager.h

    r8672 r8678  
    3838
    3939#include "util/Singleton.h"
    40 #include "util/TriBool.h"
     40#include "util/tribool.h"
    4141#include "core/WindowEventListener.h"
    4242
     
    168168            True if the call was successful, fals if the name was not found
    169169        */
    170         bool setMouseExclusive(const std::string& name, TriBool::Value value); // tolua_export
     170        bool setMouseExclusive(const std::string& name, tribool value); // tolua_export
    171171
    172172        //-------------------------------
     
    214214        OIS::InputManager*                  oisInputManager_;      //!< OIS input manager
    215215        std::vector<InputDevice*>           devices_;              //!< List of all input devices (keyboard, mouse, joy sticks)
    216         TriBool::Value                      exclusiveMouse_;       //!< Currently applied mouse mode
     216        bool                                exclusiveMouse_;       //!< Currently applied mouse mode
    217217
    218218        // some internally handled states and handlers
Note: See TracChangeset for help on using the changeset viewer.