MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetStringDescriptionForBinding

Method GetStringDescriptionForBinding

Source/UserInput/input.cpp:690–699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688}
689
690std::string Input::GetStringDescriptionForBinding(const std::string& type, const std::string& name) {
691 StrMap& keyboard_map = bindings_[type];
692 StrMap::iterator keyit = keyboard_map.find(name);
693
694 if (keyit != keyboard_map.end()) {
695 return StringFromInput(keyit->second.c_str());
696 } else {
697 return name;
698 }
699}
700
701std::vector<std::string> Input::GetAvailableBindingCategories() {
702 std::vector<std::string> categs;

Callers 1

Calls 4

StringFromInputFunction · 0.85
findMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected