| 337 | } |
| 338 | |
| 339 | bool isKeyAlreadyInCombination(InputCombination& combination, InputButton* button) |
| 340 | { |
| 341 | for (auto& [monitoredButton, _] : combination) |
| 342 | { |
| 343 | if (monitoredButton == button) |
| 344 | { |
| 345 | return true; |
| 346 | } |
| 347 | } |
| 348 | return false; |
| 349 | } |
| 350 | InputCombination InputManager::makeCombination(const std::string& code) |
| 351 | { |
| 352 | InputCombination combination; |