Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6998 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
Feb 3, 2006, 12:29:57 AM (18 years ago)
Author:
bensch
Message:

trunk: more button definitions

Location:
trunk/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/player.cc

    r6987 r6998  
    4040  this->hud.show();
    4141
    42   EventHandler::getInstance()->subscribe(this, ES_GAME, SDLK_l);
     42  EventHandler::getInstance()->subscribe(this, ES_GAME, KeyMapper::PEV_CHANGE_SHIP);
    4343}
    4444
     
    9898 void Player::process(const Event &event)
    9999 {
    100    if (event.type == SDLK_l && event.bPressed)
     100   if (event.type == KeyMapper::PEV_CHANGE_SHIP && event.bPressed)
    101101   {
    102102     /// FIXME this should be in the ObjectManager
  • trunk/src/world_entities/space_ships/hover.cc

    r6997 r6998  
    145145  registerEvent(KeyMapper::PEV_LEFT);
    146146  registerEvent(KeyMapper::PEV_RIGHT);
    147   registerEvent(SDLK_e); /// FIXME
    148   registerEvent(SDLK_c); /// FIXME
     147  registerEvent(KeyMapper::PEV_UP);
     148  registerEvent(KeyMapper::PEV_DOWN);
    149149  registerEvent(KeyMapper::PEV_FIRE1);
    150150  registerEvent(KeyMapper::PEV_NEXT_WEAPON);
     
    362362  else if( event.type == KeyMapper::PEV_RIGHT)
    363363    this->bRight = event.bPressed;
    364   else if( event.type == SDLK_e)
     364  else if( event.type == KeyMapper::PEV_UP)
    365365    this->bAscend = event.bPressed; //this->shiftCoor(0,.1,0);
    366   else if( event.type == SDLK_c)
     366  else if( event.type == KeyMapper::PEV_DOWN)
    367367    this->bDescend = event.bPressed; //this->shiftCoor(0,-.1,0);
    368368  else if( event.type == KeyMapper::PEV_FORWARD)
Note: See TracChangeset for help on using the changeset viewer.