| 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 | { |