Changeset 4866 in orxonox.OLD for orxonox/trunk/src/lib/event/event_handler.cc
- Timestamp:
- Jul 14, 2005, 10:38:21 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/event/event_handler.cc
r4838 r4866 63 63 EventHandler::~EventHandler () 64 64 { 65 EventHandler::singletonRef = NULL;66 delete this->keyMapper;67 68 65 for(int i = 0; i < ES_NUMBER; ++i) 69 66 { 70 for(int j = 0; j < SDLK_LAST; ++j)67 for(int j = 0; j < EV_NUMBER; ++j) 71 68 { 72 69 if( this->listeners[i][j] != NULL) … … 76 73 } 77 74 } 75 delete this->keyMapper; 76 EventHandler::singletonRef = NULL; 78 77 } 79 78 … … 84 83 this has to be called before the use of the event handler 85 84 */ 86 void EventHandler::init( )85 void EventHandler::init(IniParser* iniParser) 87 86 { 88 87 this->keyMapper = new KeyMapper(); 89 this->keyMapper->loadKeyBindings( );88 this->keyMapper->loadKeyBindings(iniParser); 90 89 } 91 90
Note: See TracChangeset
for help on using the changeset viewer.