Changeset 6998 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Feb 3, 2006, 12:29:57 AM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/player.cc
r6987 r6998 40 40 this->hud.show(); 41 41 42 EventHandler::getInstance()->subscribe(this, ES_GAME, SDLK_l);42 EventHandler::getInstance()->subscribe(this, ES_GAME, KeyMapper::PEV_CHANGE_SHIP); 43 43 } 44 44 … … 98 98 void Player::process(const Event &event) 99 99 { 100 if (event.type == SDLK_l&& event.bPressed)100 if (event.type == KeyMapper::PEV_CHANGE_SHIP && event.bPressed) 101 101 { 102 102 /// FIXME this should be in the ObjectManager -
trunk/src/world_entities/space_ships/hover.cc
r6997 r6998 145 145 registerEvent(KeyMapper::PEV_LEFT); 146 146 registerEvent(KeyMapper::PEV_RIGHT); 147 registerEvent( SDLK_e); /// FIXME148 registerEvent( SDLK_c); /// FIXME147 registerEvent(KeyMapper::PEV_UP); 148 registerEvent(KeyMapper::PEV_DOWN); 149 149 registerEvent(KeyMapper::PEV_FIRE1); 150 150 registerEvent(KeyMapper::PEV_NEXT_WEAPON); … … 362 362 else if( event.type == KeyMapper::PEV_RIGHT) 363 363 this->bRight = event.bPressed; 364 else if( event.type == SDLK_e)364 else if( event.type == KeyMapper::PEV_UP) 365 365 this->bAscend = event.bPressed; //this->shiftCoor(0,.1,0); 366 else if( event.type == SDLK_c)366 else if( event.type == KeyMapper::PEV_DOWN) 367 367 this->bDescend = event.bPressed; //this->shiftCoor(0,-.1,0); 368 368 else if( event.type == KeyMapper::PEV_FORWARD)
Note: See TracChangeset
for help on using the changeset viewer.