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

Method getPressedInputs

src/Core/Input/InputManager.cpp:301–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299 }
300
301 std::vector<InputButton*> InputManager::getPressedInputs()
302 {
303 std::vector<InputButton*> allPressedButtons;
304 for (auto& keyIterator : m_inputs)
305 {
306 if (keyIterator.second->isPressed())
307 {
308 allPressedButtons.push_back(keyIterator.second.get());
309 }
310 }
311 return allPressedButtons;
312 }
313
314 InputButtonMonitorPtr InputManager::monitor(const std::string& name)
315 {

Callers

nothing calls this directly

Calls 3

isPressedMethod · 0.45
push_backMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected