Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 30, 2010, 11:28:21 AM (15 years ago)
Author:
rgrieder
Message:

Moved InputStatePriority from InputState.h to InputPrereqs.h

Location:
code/branches/gamestate/src/libraries/core/input
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gamestate/src/libraries/core/input/InputManager.h

    r6537 r6656  
    4040#include "util/TriBool.h"
    4141#include "core/WindowEventListener.h"
    42 #include "InputState.h"
    4342
    4443// tolua_begin
  • code/branches/gamestate/src/libraries/core/input/InputPrereqs.h

    r6417 r6656  
    4242#include <ois/OISMouse.h>
    4343#include <ois/OISJoyStick.h>
     44#include "util/OrxEnum.h"
    4445
    4546namespace orxonox
     
    448449        };
    449450    }
     451
     452    //! Enumeration wrapper for input state priorities
     453    struct InputStatePriority : OrxEnum<InputStatePriority>
     454    {
     455        OrxEnumConstructors(InputStatePriority);
     456
     457        static const int Empty        = -1;
     458        static const int Dynamic      = 0;
     459
     460        static const int HighPriority = 1000;
     461        static const int Console      = HighPriority + 0;
     462        static const int Calibrator   = HighPriority + 1;
     463        static const int Detector     = HighPriority + 2;
     464    };
    450465}
    451466
  • code/branches/gamestate/src/libraries/core/input/InputState.h

    r6537 r6656  
    3636#include <vector>
    3737
    38 #include "util/OrxEnum.h"
    3938#include "util/TriBool.h"
    4039#include "InputHandler.h"
     
    4342namespace orxonox
    4443{
    45     //! Enumeration wrapper for input state priorities
    46     struct InputStatePriority : OrxEnum<InputStatePriority>
    47     {
    48         OrxEnumConstructors(InputStatePriority);
    49 
    50         static const int Empty        = -1;
    51         static const int Dynamic      = 0;
    52 
    53         static const int HighPriority = 1000;
    54         static const int Console      = HighPriority + 0;
    55         static const int Calibrator   = HighPriority + 1;
    56         static const int Detector     = HighPriority + 2;
    57     };
    58 
    59 
    6044    /**
    6145    @brief
Note: See TracChangeset for help on using the changeset viewer.