| 668 | } |
| 669 | |
| 670 | void Input::setBinds(String const& categoryId, String const& bindId, Json const& jBinds) { |
| 671 | auto& entry = bindEntry(categoryId, bindId); |
| 672 | |
| 673 | List<Bind> binds; |
| 674 | for (Json const& jBind : jBinds.toArray()) |
| 675 | binds.emplace_back(bindFromJson(jBind)); |
| 676 | |
| 677 | entry.customBinds = std::move(binds); |
| 678 | entry.updated(); |
| 679 | } |
| 680 | |
| 681 | unsigned Input::getTag(String const& tagName) const { |
| 682 | if (auto tag = m_activeTags.ptr(tagName)) |
nothing calls this directly
no test coverage detected