Changeset 4817 in orxonox.OLD for orxonox/trunk/src/lib/event
- Timestamp:
- Jul 7, 2005, 5:12:45 PM (20 years ago)
- Location:
- orxonox/trunk/src/lib/event
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/event/event_handler.cc
r4816 r4817 65 65 EventHandler::singletonRef = NULL; 66 66 delete this->keyMapper; 67 68 for(int i = 0; i < ES_NUMBER; ++i) 69 { 70 for(int j = 0; j < SDLK_LAST; ++j) 71 { 72 if( this->listeners[i][j] != NULL) 73 { 74 PRINTF(2)("Someone forgot to unsubscribe an EventListener!\n"); 75 } 76 } 77 } 67 78 } 68 79 -
orxonox/trunk/src/lib/event/event_listener.cc
r4457 r4817 1 /* 1 /* 2 2 orxonox - the future of 3D-vertical-scrollers 3 3 … … 17 17 18 18 #include "event_listener.h" 19 #include "event_handler.h" 19 20 20 21 using namespace std; … … 24 25 \brief standard constructor 25 26 */ 26 EventListener::EventListener () 27 EventListener::EventListener () 27 28 { 28 this->setClassID(CL_EVENT_LISTENER, "EventListener"); 29 this->setClassID(CL_EVENT_LISTENER, "EventListener"); 29 30 } 30 31 … … 34 35 35 36 */ 36 EventListener::~EventListener () 37 {} 37 EventListener::~EventListener () 38 { 39 /* unsubscribes itself from the event listener */ 40 EventHandler::getInstance()->unsubscribe(this); 41 }
Note: See TracChangeset
for help on using the changeset viewer.