| 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 | { |
no test coverage detected