Changeset 4085 in orxonox.OLD for orxonox/trunk
- Timestamp:
- May 6, 2005, 4:31:32 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/command_node.cc
r4084 r4085 142 142 while( parser.nextVar (namebuf, valuebuf) != -1) 143 143 { 144 index = nameToIndex ( namebuf);144 index = nameToIndex (valuebuf); 145 145 switch( index[0]) 146 146 { 147 147 case 0: 148 PRINTF(4)("Key binding %d(%s) set to %s\n", index[1], SDLKToKeyname( index[1]), valuebuf);149 strcpy (aliases->keys[index[1]], valuebuf);148 PRINTF(4)("Key binding %d(%s) set to %s\n", index[1], SDLKToKeyname( index[1]), namebuf); 149 strcpy (aliases->keys[index[1]], namebuf); 150 150 break; 151 151 case 1: 152 PRINTF(4)("Button binding %d(%s) set to %s\n", index[1], SDLBToButtonname( index[1]), valuebuf);153 strcpy (aliases->buttons[index[1]], valuebuf);152 PRINTF(4)("Button binding %d(%s) set to %s\n", index[1], SDLBToButtonname( index[1]), namebuf); 153 strcpy (aliases->buttons[index[1]], namebuf); 154 154 break; 155 155 default: -
orxonox/trunk/src/defs/debug.h
r4084 r4085 59 59 #define DEBUG_MODULE_PNODE 1 60 60 #define DEBUG_MODULE_WORLD_ENTITY 0 61 #define DEBUG_MODULE_COMMAND_NODE 261 #define DEBUG_MODULE_COMMAND_NODE 4 62 62 #define DEBUG_MODULE_GRAPHICS 0 63 63 #define DEBUG_MODULE_LOAD 0 -
orxonox/trunk/src/lib/gui/gui/gui_keys.cc
r4083 r4085 69 69 this->pKeysBox = new Box('v'); 70 70 this->pKeysBox->setGroupName(player); 71 this->pKeysBox->fill(addKey(UP, " UP"));72 this->pKeysBox->fill(addKey(DOWN, " DOWN"));73 this->pKeysBox->fill(addKey(LEFT, " LEFT"));74 this->pKeysBox->fill(addKey(RIGHT, " RIGHT"));75 this->pKeysBox->fill(addKey(SHOOT, " FIRE"));71 this->pKeysBox->fill(addKey(UP, "up")); 72 this->pKeysBox->fill(addKey(DOWN, "down")); 73 this->pKeysBox->fill(addKey(LEFT, "left")); 74 this->pKeysBox->fill(addKey(RIGHT, "right")); 75 this->pKeysBox->fill(addKey(SHOOT, "fire")); 76 76 delete windowName; 77 77 closeButton = new Button("close"); … … 172 172 { 173 173 case GDK_Up: 174 strcpy(title, " up");174 strcpy(title, "UP"); 175 175 break; 176 176 case GDK_Down: 177 strcpy(title, " down");177 strcpy(title, "DOWN"); 178 178 break; 179 179 case GDK_Left: 180 strcpy(title, " left");180 strcpy(title, "LEFT"); 181 181 break; 182 182 case GDK_Right: 183 strcpy(title, " right");183 strcpy(title, "RIGHT"); 184 184 break; 185 185 186 186 case GDK_space: 187 strcpy(title, " space");188 break; 189 190 case 65293:191 strcpy(title, " enter");187 strcpy(title, "SPACE"); 188 break; 189 190 case GDK_Return: 191 strcpy(title, "RETURN"); 192 192 break; 193 193 194 194 // Special Keys // 195 case GDK_BackSpace: 196 strcpy(title, "BACKSPACE"); 197 break; 198 case GDK_Scroll_Lock: 199 strcpy(title, "SCROLLOCK"); 200 break; 201 case GDK_minus: 202 strcpy(title, "MINUS"); 203 break; 204 case GDK_plus: 205 strcpy(title, "PLUS"); 206 break; 207 case GDK_slash: 208 strcpy(title, "SLASH"); 209 break; 210 case GDK_period: 211 strcpy(title, "PERIOD"); 212 break; 213 case GDK_comma: 214 strcpy(title, "COMMA"); 215 break; 216 case GDK_colon: 217 strcpy(title, "COLON"); 218 break; 219 case GDK_semicolon: 220 strcpy(title, "SEMICOLON"); 221 break; 222 case GDK_less: 223 strcpy(title, "LESS"); 224 break; 225 case GDK_equal: 226 strcpy(title, "EQUALS"); 227 break; 228 case GDK_greater: 229 strcpy(title, "GREATER"); 230 break; 231 case GDK_question: 232 strcpy(title, "QUESTION"); 233 break; 234 case GDK_at: 235 strcpy(title, "AT"); 236 break; 237 case GDK_bracketleft: 238 strcpy(title, "LEFTBRACKET"); 239 break; 240 case GDK_bracketright: 241 strcpy(title, "RIGHTBRACKET"); 242 break; 243 case GDK_backslash: 244 strcpy(title, "BACKSLASH"); 245 break; 246 case GDK_underscore: 247 strcpy(title, "UNDERSCORE"); 248 break; 249 case GDK_quoteleft: 250 strcpy(title, "BACKQUOTE"); 251 break; 252 253 case GDK_Page_Up: 254 strcpy(title, "PAGEUP"); 255 break; 256 case GDK_Page_Down: 257 strcpy(title, "PAGEDOWN"); 258 break; 259 case GDK_Home: 260 strcpy(title, "HOME"); 261 break; 262 case GDK_Insert: 263 strcpy(title, "INSERT"); 264 break; 265 195 266 case GDK_Escape: 196 strcpy(title, " esc");267 strcpy(title, "ESCAPE"); 197 268 break; 198 269 case GDK_Tab: 199 strcpy(title, " tab");270 strcpy(title, "TAB"); 200 271 break; 201 272 case GDK_Shift_L: 202 strcpy(title, " l_shift");273 strcpy(title, "LSHIFT"); 203 274 break; 204 275 case GDK_Shift_R: 205 strcpy(title, " r_shift");276 strcpy(title, "R_SHIFT"); 206 277 break; 207 278 case GDK_Control_L: 208 strcpy(title, " l_ctrl");279 strcpy(title, "LCTRL"); 209 280 break; 210 281 case GDK_Control_R: 211 strcpy(title, " r_ctrl");282 strcpy(title, "RCTRL"); 212 283 break; 213 284 case GDK_Alt_L: 214 strcpy(title, " l_alt");285 strcpy(title, "LALT"); 215 286 break; 216 287 case GDK_Alt_R: 217 strcpy(title, " r_alt");288 strcpy(title, "RALT"); 218 289 break; 219 290 // FXX KEYS // 220 291 case GDK_F1: 221 strcpy(title, " f1");292 strcpy(title, "F1"); 222 293 break; 223 294 case GDK_F2: 224 strcpy(title, " f2");295 strcpy(title, "F2"); 225 296 break; 226 297 case GDK_F3: 227 strcpy(title, " f3");298 strcpy(title, "F3"); 228 299 break; 229 300 case GDK_F4: 230 strcpy(title, " f4");301 strcpy(title, "F4"); 231 302 break; 232 303 case GDK_F5: 233 strcpy(title, " f5");304 strcpy(title, "F5"); 234 305 break; 235 306 case GDK_F6: 236 strcpy(title, " f6");307 strcpy(title, "F6"); 237 308 break; 238 309 case GDK_F7: 239 strcpy(title, " f7");310 strcpy(title, "F7"); 240 311 break; 241 312 case GDK_F8: 242 strcpy(title, " f8");313 strcpy(title, "F8"); 243 314 break; 244 315 case GDK_F9: 245 strcpy(title, " f9");316 strcpy(title, "F9"); 246 317 break; 247 318 case GDK_F10: 248 strcpy(title, " f10");319 strcpy(title, "F10"); 249 320 break; 250 321 case GDK_F11: 251 strcpy(title, " f11");322 strcpy(title, "F11"); 252 323 break; 253 324 case GDK_F12: 254 strcpy(title, " f12");325 strcpy(title, "F12"); 255 326 break; 256 327
Note: See TracChangeset
for help on using the changeset viewer.