Changeset 4362 in orxonox.OLD for orxonox/trunk/src/util
- Timestamp:
- May 28, 2005, 2:52:27 PM (20 years ago)
- Location:
- orxonox/trunk/src/util/event
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/event/event.h
r4361 r4362 23 23 int offset; //!< offset in the event type array 24 24 char cmd[CMD_LENGHT]; //!< the command delivered 25 int type; //!< the type field 25 26 bool bPressed; //!< is true, if the button/mouse was pressed, false if released 26 27 -
orxonox/trunk/src/util/event/event_handler.cc
r4361 r4362 223 223 case SDL_KEYDOWN: 224 224 ev.bPressed = true; 225 listener = this->listeners[this->state][event.key.keysym.sym]; 226 //if( listener != NULL) 227 //listener->process(); 225 ev.type = event.key.keysym.sym; 228 226 break; 229 227 case SDL_KEYUP: 230 /* 231 strcpy( cmd.cmd, aliases->keys[event.key.keysym.sym]); 232 cmd.bUp = true; 233 if( strlen (cmd.cmd) > 0) relay(&cmd); 234 */ 228 ev.bPressed = false; 229 ev.type = event.key.keysym.sym; 235 230 break; 236 231 case SDL_MOUSEMOTION: … … 267 262 break; 268 263 } 269 } 270 } 264 265 listener = this->listeners[this->state][event.key.keysym.sym]; 266 //if( listener != NULL) 267 //listener->process(); 268 269 } 270 } -
orxonox/trunk/src/util/event/event_handler.h
r4355 r4362 12 12 13 13 class EventListener; 14 template<class T> class tList; 14 15 15 16 16 … … 24 24 ES_GAME_MENU, 25 25 ES_MENU, 26 27 ES_ALL, 26 28 27 29 ES_NUMBER,
Note: See TracChangeset
for help on using the changeset viewer.