| 29 | bool InputManager::Initialize() { return true; } |
| 30 | |
| 31 | SystemStatus InputManager::Update(const double deltaSeconds) { |
| 32 | // Commit input handler changes |
| 33 | inputHandlers_.insert(inputHandlersToAdd_.begin(), inputHandlersToAdd_.end()); |
| 34 | inputHandlers_.erase(inputHandlersToRemove_.begin(), inputHandlersToRemove_.end()); |
| 35 | inputHandlersToAdd_.clear(); |
| 36 | inputHandlersToRemove_.clear(); |
| 37 | |
| 38 | // Allow all input handlers to update |
| 39 | for (const InputHandlerPtr& ptr : inputHandlers_) { |
| 40 | ptr->HandleInput(mouse_, inputEvents_, deltaSeconds); |
| 41 | } |
| 42 | |
| 43 | return SystemStatus::SYSTEM_CONTINUE; |
| 44 | } |
| 45 | |
| 46 | void InputManager::Shutdown() { |
| 47 | inputHandlers_.clear(); |
nothing calls this directly
no test coverage detected