- Timestamp:
- Oct 4, 2009, 12:26:05 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/libraries/core/input/InputManager.cc
r5863 r5869 53 53 54 54 #include "InputBuffer.h" 55 #include "KeyDetector.h"56 55 #include "JoyStick.h" 57 56 #include "JoyStickQuantityListener.h" … … 90 89 , bExclusiveMouse_(false) 91 90 , emptyState_(0) 92 , keyDetector_(0)93 91 , calibratorCallbackHandler_(0) 94 92 { … … 105 103 emptyState_->setHandler(&InputHandler::EMPTY); 106 104 activeStates_[emptyState_->getPriority()] = emptyState_; 107 108 // KeyDetector to evaluate a pressed key's name109 InputState* detector = createInputState("detector", false, false, InputStatePriority::Detector);110 // Create a callback to avoid buttonHeld events after the key has been detected111 detector->setLeaveFunctor(createFunctor(&InputManager::clearBuffers, this));112 keyDetector_ = new KeyDetector();113 detector->setHandler(keyDetector_);114 105 115 106 // Joy stick calibration helper callback … … 274 265 275 266 // Destroy calibrator helper handler and state 276 keyDetector_->destroy();277 267 this->destroyState("calibrator"); 278 268 // Destroy KeyDetector and state 279 269 calibratorCallbackHandler_->destroy(); 280 this->destroyState("detector");281 270 // destroy the empty InputState 282 271 this->destroyStateInternal(this->emptyState_);
Note: See TracChangeset
for help on using the changeset viewer.