Changeset 4406 in orxonox.OLD for orxonox/trunk
- Timestamp:
- May 30, 2005, 7:01:24 PM (19 years ago)
- Location:
- orxonox/trunk/src/util/event
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/event/event_def.h
r4387 r4406 19 19 #define EVENT_QUEUE_LENGTH 32 20 20 21 21 22 typedef enum extEventTyes 22 23 { 23 EV_MOUSE_MOTION = SDLK_LAST, 24 EV_MOUSE_BUTTON, 24 EV_MOUSE_BUTTON_LEFT = SDLK_LAST, 25 EV_MOUSE_BUTTON_MIDDLE, 26 EV_MOUSE_BUTTON_RIGHT, 27 EV_MOUSE_BUTTON_WHEELUP, 28 EV_MOUSE_BUTTON_WHEELDOWN, 29 EV_MOUSE_MOTION, 25 30 EV_JOY_AXIS_MOTION, 26 31 EV_JOY_BALL_MOTION, -
orxonox/trunk/src/util/event/event_handler.cc
r4405 r4406 82 82 void EventHandler::subscribe(EventListener* el, elState state, int eventType) 83 83 { 84 PRINTF(0)("Subscribing event type: %i\n", eventType); 84 85 if( likely(this->listeners[state][eventType] == NULL)) 85 86 this->listeners[state][eventType] = el; … … 91 92 void EventHandler::unsubscribe(int eventType, elState state) 92 93 { 94 PRINTF(0)("Unsubscribing event type nr: %i\n", eventType); 93 95 this->listeners[state][eventType] = NULL; 94 96 } … … 144 146 case SDL_MOUSEBUTTONUP: 145 147 ev.bPressed = false; 146 ev.type = EV_MOUSE_BUTTON;148 ev.type = event.button.button + SDLK_LAST; 147 149 break; 148 150 case SDL_MOUSEBUTTONDOWN: 149 151 ev.bPressed = true; 150 ev.type = EV_MOUSE_BUTTON;152 ev.type = event.button.button + SDLK_LAST; 151 153 break; 152 154 case SDL_JOYAXISMOTION:
Note: See TracChangeset
for help on using the changeset viewer.