Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6997 in orxonox.OLD for trunk/src/world_entities/space_ships


Ignore:
Timestamp:
Feb 3, 2006, 12:04:51 AM (19 years ago)
Author:
bensch
Message:

trunk: UP is FORWARD, DOWN is BACKWARD

Location:
trunk/src/world_entities/space_ships
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/space_ships/helicopter.cc

    r6986 r6997  
    150150
    151151  //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);
    154154  registerEvent(KeyMapper::PEV_LEFT);
    155155  registerEvent(KeyMapper::PEV_RIGHT);
     
    412412  else if( event.type == SDLK_c)
    413413    this->bDescend = event.bPressed;
    414   else if( event.type == KeyMapper::PEV_UP)
     414  else if( event.type == KeyMapper::PEV_FORWARD)
    415415    this->bUp = event.bPressed;
    416   else if( event.type == KeyMapper::PEV_DOWN)
     416  else if( event.type == KeyMapper::PEV_BACKWARD)
    417417    this->bDown = event.bPressed;
    418418  else if( event.type == EV_MOUSE_MOTION)
  • trunk/src/world_entities/space_ships/hover.cc

    r6986 r6997  
    141141
    142142  //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);
    145145  registerEvent(KeyMapper::PEV_LEFT);
    146146  registerEvent(KeyMapper::PEV_RIGHT);
     
    366366  else if( event.type == SDLK_c)
    367367    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)
    369369    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)
    371371    this->bBackward = event.bPressed; //this->shiftCoor(0,-.1,0);
    372372  else if( event.type == EV_MOUSE_MOTION)
  • trunk/src/world_entities/space_ships/space_ship.cc

    r6994 r6997  
    170170
    171171  //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);
    174174  registerEvent(KeyMapper::PEV_LEFT);
    175175  registerEvent(KeyMapper::PEV_RIGHT);
     
    490490  else if( event.type == KeyMapper::PEV_RIGHT)
    491491      this->bRollR = event.bPressed;
    492   else if( event.type == KeyMapper::PEV_UP)
     492  else if( event.type == KeyMapper::PEV_FORWARD)
    493493    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)
    495495    this->bDown = event.bPressed; //this->shiftCoor(0,-.1,0);
    496496  else if( event.type == EV_MOUSE_MOTION)
Note: See TracChangeset for help on using the changeset viewer.