Changeset 2814 for code/branches/gui/src/core/input/InputManager.h
- Timestamp:
- Mar 21, 2009, 5:30:16 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/core/input/InputManager.h
r2800 r2814 43 43 #include <stack> 44 44 #include "util/Math.h" 45 #include "util/OrxEnum.h" 45 46 #include "core/OrxonoxClass.h" 46 47 #include "InputInterfaces.h" … … 74 75 float positiveCoeff[24]; 75 76 float negativeCoeff[24]; 77 }; 78 79 struct InputStatePriority : OrxEnum<InputStatePriority> 80 { 81 OrxEnumConstructors(InputStatePriority); 82 83 static const int Empty = -1; 84 static const int Dynamic = 0; 85 86 static const int HighPriority = 1000; 87 static const int Console = HighPriority + 0; 88 static const int Calibrator = HighPriority + 1; 89 static const int Detector = HighPriority + 2; 76 90 }; 77 91 … … 116 130 117 131 template <class T> 118 T* createInputState(const std::string& name, int priority);132 T* createInputState(const std::string& name, InputStatePriority priority = InputStatePriority::Dynamic); 119 133 120 134 InputState* getState (const std::string& name); … … 202 216 203 217 std::map<std::string, InputState*> inputStatesByName_; 204 std::map<int, InputState*> inputStatesByPriority_;205 218 206 219 std::set<InputState*> stateEnterRequests_; //!< Request to enter a new state … … 249 262 */ 250 263 template <class T> 251 T* InputManager::createInputState(const std::string& name, intpriority)264 T* InputManager::createInputState(const std::string& name, InputStatePriority priority) 252 265 { 253 266 T* state = new T;
Note: See TracChangeset
for help on using the changeset viewer.