Changeset 3605 in orxonox.OLD for orxonox/branches/levelloader/src/command_node.cc
- Timestamp:
- Mar 18, 2005, 11:52:15 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/command_node.cc
r3236 r3605 14 14 */ 15 15 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_COMMAND_NODE 16 17 17 18 #include "command_node.h" … … 112 113 FILE* stream; 113 114 114 printf("Loading key bindings from %s\n", filename);115 PRINTF(4)("Loading key bindings from %s\n", filename); 115 116 116 117 if( filename == NULL) filename = DEFAULT_KEYBIND_FILE; … … 127 128 if( parser.getSection ("Bindings") == -1) 128 129 { 129 printf("Could not find key bindings in %s\n", filename);130 PRINTF(1)("Could not find key bindings in %s\n", filename); 130 131 return; 131 132 } … … 145 146 { 146 147 case 0: 147 printf("Key binding %d(%s) set to %s\n", index[1], SDLKToKeyname( index[1]), valuebuf);148 PRINTF(4)("Key binding %d(%s) set to %s\n", index[1], SDLKToKeyname( index[1]), valuebuf); 148 149 strcpy (aliases->keys[index[1]], valuebuf); 149 150 break; 150 151 case 1: 151 printf("Button binding %d(%s) set to %s\n", index[1], SDLBToButtonname( index[1]), valuebuf);152 PRINTF(4)("Button binding %d(%s) set to %s\n", index[1], SDLBToButtonname( index[1]), valuebuf); 152 153 strcpy (aliases->buttons[index[1]], valuebuf); 153 154 break; … … 214 215 while( SDL_PollEvent (&event)) 215 216 { 217 PRINTF(3)("CommandNode::processLocal() =========================got Event\n"); 216 218 memset (cmd.cmd, 0, CMD_LENGHT); 217 219 switch( event.type) … … 267 269 void CommandNode::relay (Command* cmd) 268 270 { 269 270 271 Orxonox *orx = Orxonox::getInstance(); 271 272 if( orx->systemCommand (cmd)) return; … … 281 282 while( entity != NULL) 282 283 { 283 entity->command (cmd); 284 entity->command (cmd); /*no absorbtion of command! strange*/ 284 285 entity = bound->nextElement(); 285 286 }
Note: See TracChangeset
for help on using the changeset viewer.