Changeset 1670 for code/branches/gui/src/core/input/InputManager.h
- Timestamp:
- Aug 26, 2008, 4:26:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/core/input/InputManager.h
r1659 r1670 127 127 } 128 128 129 bool destroyState (const std::string& name);130 129 InputState* getState (const std::string& name); 131 130 InputState* getCurrentState(); 131 bool requestDestroyState (const std::string& name); 132 132 bool requestEnterState (const std::string& name); 133 133 bool requestLeaveState (const std::string& name); 134 135 void tick(float dt); 134 136 135 137 static InputManager& getInstance() { assert(singletonRef_s); return *singletonRef_s; } … … 167 169 void _updateActiveStates(); 168 170 bool _configureInputState(InputState* state, const std::string& name, int priority); 169 170 void tick(float dt);171 171 172 172 // input events … … 204 204 std::map<int, InputState*> inputStatesByPriority_; 205 205 206 std::vector<InputState*> stateEnterRequests_; //!< Request to enter a new state 207 std::vector<InputState*> stateLeaveRequests_; //!< Request to leave the current state 206 std::set<InputState*> stateEnterRequests_; //!< Request to enter a new state 207 std::set<InputState*> stateLeaveRequests_; //!< Request to leave a running state 208 std::set<InputState*> stateDestroyRequests_; //!< Request to destroy a state 208 209 209 210 std::map<int, InputState*> activeStates_;
Note: See TracChangeset
for help on using the changeset viewer.