MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / setBinds

Method setBinds

source/game/StarInput.cpp:670–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

668}
669
670void 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
681unsigned Input::getTag(String const& tagName) const {
682 if (auto tag = m_activeTags.ptr(tagName))

Callers

nothing calls this directly

Calls 3

toArrayMethod · 0.80
emplace_backMethod · 0.45
updatedMethod · 0.45

Tested by

no test coverage detected