- Timestamp:
- May 28, 2005, 12:27:29 AM (20 years ago)
- Location:
- orxonox/trunk/src/util/event
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/event/event.h
r4346 r4350 7 7 #ifndef _EVENT_H 8 8 #define _EVENT_H 9 10 #define CMD_LENGHT 16 9 11 10 12 #include "base_object.h" … … 18 20 virtual ~Event(); 19 21 22 23 private: 24 int offset; //!< offset in the event type array 25 char cmd[CMD_LENGHT]; //!< the command delivered 26 bool bPressed; //!< is true, if the button/mouse was pressed, false if released 27 28 Uint16 x, y; //!< x and y coordinates 29 Sint16 xRel, yRel; //!< relative x and y movement to last point 30 20 31 }; 21 32 -
orxonox/trunk/src/util/event/event_handler.cc
r4346 r4350 17 17 18 18 #include "event_handler.h" 19 #include "event_listener.h" 20 21 #include "SDL_keysym.h" 19 22 20 23 using namespace std; … … 27 30 { 28 31 this->setClassID(CL_EVENT_HANDLER, "EventHandler"); 32 33 this->listeners = new EventListener*[SDLK_LAST]; 29 34 } 30 35 -
orxonox/trunk/src/util/event/event_handler.h
r4346 r4350 30 30 virtual ~EventHandler(void); 31 31 32 void setState(elState state); 33 32 34 void subscribeListener(EventListener* el, elState state); 33 35 void unsubscribeListener(EventListener* el, elState state);
Note: See TracChangeset
for help on using the changeset viewer.