Changeset 6997 in orxonox.OLD for trunk/src/world_entities/space_ships
- Timestamp:
- Feb 3, 2006, 12:04:51 AM (19 years ago)
- Location:
- trunk/src/world_entities/space_ships
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/space_ships/helicopter.cc
r6986 r6997 150 150 151 151 //add events to the eventlist 152 registerEvent(KeyMapper::PEV_ UP);153 registerEvent(KeyMapper::PEV_ DOWN);152 registerEvent(KeyMapper::PEV_FORWARD); 153 registerEvent(KeyMapper::PEV_BACKWARD); 154 154 registerEvent(KeyMapper::PEV_LEFT); 155 155 registerEvent(KeyMapper::PEV_RIGHT); … … 412 412 else if( event.type == SDLK_c) 413 413 this->bDescend = event.bPressed; 414 else if( event.type == KeyMapper::PEV_ UP)414 else if( event.type == KeyMapper::PEV_FORWARD) 415 415 this->bUp = event.bPressed; 416 else if( event.type == KeyMapper::PEV_ DOWN)416 else if( event.type == KeyMapper::PEV_BACKWARD) 417 417 this->bDown = event.bPressed; 418 418 else if( event.type == EV_MOUSE_MOTION) -
trunk/src/world_entities/space_ships/hover.cc
r6986 r6997 141 141 142 142 //add events to the eventlist 143 registerEvent(KeyMapper::PEV_ UP);144 registerEvent(KeyMapper::PEV_ DOWN);143 registerEvent(KeyMapper::PEV_FORWARD); 144 registerEvent(KeyMapper::PEV_BACKWARD); 145 145 registerEvent(KeyMapper::PEV_LEFT); 146 146 registerEvent(KeyMapper::PEV_RIGHT); … … 366 366 else if( event.type == SDLK_c) 367 367 this->bDescend = event.bPressed; //this->shiftCoor(0,-.1,0); 368 else if( event.type == KeyMapper::PEV_ UP)368 else if( event.type == KeyMapper::PEV_FORWARD) 369 369 this->bForward = event.bPressed; //this->shiftCoor(0,.1,0); 370 else if( event.type == KeyMapper::PEV_ DOWN)370 else if( event.type == KeyMapper::PEV_BACKWARD) 371 371 this->bBackward = event.bPressed; //this->shiftCoor(0,-.1,0); 372 372 else if( event.type == EV_MOUSE_MOTION) -
trunk/src/world_entities/space_ships/space_ship.cc
r6994 r6997 170 170 171 171 //add events to the eventlist 172 registerEvent(KeyMapper::PEV_ UP);173 registerEvent(KeyMapper::PEV_ DOWN);172 registerEvent(KeyMapper::PEV_FORWARD); 173 registerEvent(KeyMapper::PEV_BACKWARD); 174 174 registerEvent(KeyMapper::PEV_LEFT); 175 175 registerEvent(KeyMapper::PEV_RIGHT); … … 490 490 else if( event.type == KeyMapper::PEV_RIGHT) 491 491 this->bRollR = event.bPressed; 492 else if( event.type == KeyMapper::PEV_ UP)492 else if( event.type == KeyMapper::PEV_FORWARD) 493 493 this->bUp = event.bPressed; //this->shiftCoor(0,.1,0); 494 else if( event.type == KeyMapper::PEV_ DOWN)494 else if( event.type == KeyMapper::PEV_BACKWARD) 495 495 this->bDown = event.bPressed; //this->shiftCoor(0,-.1,0); 496 496 else if( event.type == EV_MOUSE_MOTION)
Note: See TracChangeset
for help on using the changeset viewer.