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

Method getContexts

src/Core/Input/InputManager.cpp:254–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252 }
253
254 std::vector<std::string> InputManager::getContexts()
255 {
256 std::set<std::string> allContexts;
257
258 for (const auto& action : m_currentActions)
259 {
260 for (const auto& context : action->getContexts())
261 {
262 allContexts.emplace(context);
263 }
264 }
265 return std::vector<std::string>(allContexts.begin(), allContexts.end());
266 }
267
268 InputButton& InputManager::getInput(const std::string& keyId)
269 {

Callers 1

InputManager.cppFile · 0.45

Calls 3

emplaceMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected