Changeset 6183 for code/branches/presentation2/src/libraries/core/input
- Timestamp:
- Nov 30, 2009, 11:07:06 AM (15 years ago)
- Location:
- code/branches/presentation2/src/libraries/core/input
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/core/input/InputManager.cc
r6108 r6183 366 366 // ############################################################ 367 367 368 void InputManager:: update(const Clock& time)368 void InputManager::preUpdate(const Clock& time) 369 369 { 370 370 if (internalState_ & Bad) … … 466 466 @brief 467 467 Updates the currently active states (according to activeStates_) for each device. 468 Also, a list of all active states (no duplicates!) is compiled for the general update().468 Also, a list of all active states (no duplicates!) is compiled for the general preUpdate(). 469 469 */ 470 470 void InputManager::updateActiveStates() -
code/branches/presentation2/src/libraries/core/input/InputManager.h
r6150 r6183 99 99 was submitted while updating, the request will be postponed until the next update call. 100 100 */ 101 void update(const Clock& time);101 void preUpdate(const Clock& time); 102 102 //! Clears all input device buffers. This usually only includes the pressed button list. 103 103 void clearBuffers(); … … 108 108 Reloads all the input devices. Use this method to initialise new joy sticks. 109 109 @note 110 Only reloads immediately if the call stack doesn't include the update() method.110 Only reloads immediately if the call stack doesn't include the preUpdate() method. 111 111 */ 112 112 void reload(); … … 157 157 @remarks 158 158 - You can't remove the internal states "empty", "calibrator" and "detector". 159 - The removal process is being postponed if InputManager:: update() is currently running.159 - The removal process is being postponed if InputManager::preUpdate() is currently running. 160 160 */ 161 161 bool destroyState(const std::string& name);
Note: See TracChangeset
for help on using the changeset viewer.