MCPcopy Create free account
hub / github.com/MyGUI/mygui / addCommand

Method addCommand

Tools/EditorFramework/HotKeyManager.cpp:222–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220 }
221
222 void HotKeyManager::addCommand(HotKeyCommand& _command)
223 {
224 MapCommand::iterator section = mCommands.find(_command.getKey());
225 if (section == mCommands.end())
226 section = mCommands.insert(std::make_pair(_command.getKey(), VectorCommand())).first;
227
228 (*section).second.push_back(_command);
229 }
230
231 bool HotKeyManager::onKeyEvent(bool _pressed, bool _shift, bool _control, MyGUI::KeyCode _key)
232 {

Callers

nothing calls this directly

Calls 4

findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected