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

Method getInvolvedButtons

src/Core/Input/InputAction.cpp:101–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 }
100
101 std::vector<InputButton*> InputAction::getInvolvedButtons() const
102 {
103 std::vector<InputButton*> involvedButtons;
104 for (const InputCondition& condition : m_conditions)
105 {
106 for (const InputCombinationElement& combinationElement :
107 condition.getCombination())
108 {
109 involvedButtons.push_back(combinationElement.first);
110 }
111 }
112 return involvedButtons;
113 }
114
115 void InputAction::enable(const std::vector<InputButtonMonitorPtr>& monitors)
116 {

Callers 1

InputManager.cppFile · 0.80

Calls 2

getCombinationMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected