Changeset 4399 in orxonox.OLD for orxonox/trunk
- Timestamp:
- May 30, 2005, 5:23:30 PM (19 years ago)
- Location:
- orxonox/trunk/src/util/event
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/event/key_mapper.cc
r4398 r4399 101 101 while( parser.nextVar (namebuf, valuebuf) != -1) 102 102 { 103 PRINTF( 0)("Keys: Parsing %s, %s now.\n", namebuf, valuebuf);103 PRINTF(3)("Keys: Parsing %s, %s now.\n", namebuf, valuebuf); 104 104 index = nameToIndex (valuebuf); 105 105 … … 107 107 { 108 108 case 0: 109 PRINTF( 0)("Key binding %d(%s) set to %s\n", index[1], SDLKToKeyname( index[1]), namebuf);109 PRINTF(3)("Key binding %d(%s) set to %s\n", index[1], SDLKToKeyname( index[1]), namebuf); 110 110 strcpy (this->keyAliases->keys[index[1]], namebuf); 111 111 break; 112 112 case 1: 113 PRINTF( 0)("Button binding %d(%s) set to %s\n", index[1], SDLBToButtonname( index[1]), namebuf);113 PRINTF(3)("Button binding %d(%s) set to %s\n", index[1], SDLBToButtonname( index[1]), namebuf); 114 114 strcpy (this->keyAliases->buttons[index[1]], namebuf); 115 115 break; … … 131 131 while( parser.nextVar (namebuf, valuebuf) != -1) 132 132 { 133 PRINTF( 0)("MISC: Parsing %s, %s now.\n", namebuf, valuebuf);133 PRINTF(3)("MISC: Parsing %s, %s now.\n", namebuf, valuebuf); 134 134 index = nameToIndex (valuebuf); 135 135 … … 137 137 { 138 138 case 0: 139 PRINTF( 0)("Key binding %d(%s) set to %s\n", index[1], SDLKToKeyname( index[1]), namebuf);139 PRINTF(3)("Key binding %d(%s) set to %s\n", index[1], SDLKToKeyname( index[1]), namebuf); 140 140 strcpy (keyAliases->keys[index[1]], namebuf); 141 141 break; 142 142 case 1: 143 PRINTF( 0)("Button binding %d(%s) set to %s\n", index[1], SDLBToButtonname( index[1]), namebuf);143 PRINTF(3)("Button binding %d(%s) set to %s\n", index[1], SDLBToButtonname( index[1]), namebuf); 144 144 strcpy (keyAliases->buttons[index[1]], namebuf); 145 145 break; … … 173 173 174 174 175 176 void KeyMapper::mapKeys() 177 { 178 for(int i = 0; i < N_STD_KEYS; ++i) 179 { 180 PRINTF(0)("Button binding array entry %i - %s\n", i, this->keyAliases->keys[i]); 181 } 182 } 183 184 175 185 void KeyMapper::debug() 176 186 { -
orxonox/trunk/src/util/event/key_mapper.h
r4389 r4399 39 39 private: 40 40 int* nameToIndex (char* name); 41 void mapKeys(); 41 42 42 43 public:
Note: See TracChangeset
for help on using the changeset viewer.