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