| 60 | } |
| 61 | |
| 62 | CommandManager::EventType* CommandManager::getEvent(const MyGUI::UString& _command) |
| 63 | { |
| 64 | MapEvent::iterator event = mEvents.find(_command); |
| 65 | if (event != mEvents.end()) |
| 66 | return (*event).second; |
| 67 | |
| 68 | EventType* type = new EventType(); |
| 69 | mEvents[_command] = type; |
| 70 | return type; |
| 71 | } |
| 72 | |
| 73 | } |