MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / get

Method get

src/common/KeyManager.cpp:226–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226std::string KeyManager::get(const BzfKeyEvent& key,
227 bool press) const {
228 const EventToCommandMap* map = press ? &pressEventToCommand :
229 &releaseEventToCommand;
230 EventToCommandMap::const_iterator index = map->find(key);
231 if (index == map->end()) {
232 return "";
233 }
234 else {
235 return index->second;
236 }
237}
238
239
240std::vector<std::string> KeyManager::getKeysFromCommand(std::string command, bool press) const {

Callers 3

writeBZDBFunction · 0.45
createDataInStreamMethod · 0.45
createDataOutStreamMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected