MCPcopy Create free account
hub / github.com/KTStephano/StratusGFX / Update

Method Update

Source/Engine/StratusWindow.cpp:31–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 2

SetInputData_Method · 0.80
HandleInputMethod · 0.45

Tested by

no test coverage detected