MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / updateOrCleanMonitor

Function updateOrCleanMonitor

src/Core/Input/InputManager.cpp:11–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace obe::Input
10{
11 bool updateOrCleanMonitor(Triggers::TriggerGroupPtr triggers,
12 const std::weak_ptr<InputButtonMonitor>& element)
13 {
14 if (auto monitor = element.lock())
15 {
16 monitor->update(triggers);
17 return false;
18 }
19 else
20 {
21 return true;
22 }
23 }
24
25 bool InputManager::isActionCurrentlyInUse(const std::string& actionId)
26 {

Callers 1

updateMethod · 0.85

Calls 2

lockMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected