Changeset 6506 in orxonox.OLD for branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.cc
- Timestamp:
- Jan 12, 2006, 4:10:05 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.cc
r6505 r6506 152 152 153 153 //add events to the eventlist 154 registerEvent( SDLK_w);155 registerEvent( SDLK_s);156 registerEvent( SDLK_a);157 registerEvent( SDLK_d);158 registerEvent(SDLK_q);159 registerEvent(SDLK_e);154 registerEvent(KeyMapper::PEV_UP); 155 registerEvent(KeyMapper::PEV_DOWN); 156 registerEvent(KeyMapper::PEV_LEFT); 157 registerEvent(KeyMapper::PEV_RIGHT); 158 //registerEvent(SDLK_q); 159 //registerEvent(SDLK_e); 160 160 registerEvent(KeyMapper::PEV_FIRE1); 161 161 registerEvent(KeyMapper::PEV_NEXT_WEAPON); 162 162 registerEvent(KeyMapper::PEV_PREVIOUS_WEAPON); 163 registerEvent(SDLK_PAGEUP);164 registerEvent(SDLK_PAGEDOWN);163 //registerEvent(SDLK_PAGEUP); 164 //registerEvent(SDLK_PAGEDOWN); 165 165 registerEvent(EV_MOUSE_MOTION); 166 166 … … 422 422 423 423 424 if( event.type == SDLK_a)424 if( event.type == KeyMapper::PEV_LEFT) 425 425 this->bRollL = event.bPressed; 426 else if( event.type == SDLK_d)426 else if( event.type == KeyMapper::PEV_RIGHT) 427 427 this->bRollR = event.bPressed; 428 428 else if( event.type == KeyMapper::PEV_FIRE1) … … 434 434 else if ( event.type == KeyMapper::PEV_PREVIOUS_WEAPON && event.bPressed) 435 435 this->previousWeaponConfig(); 436 else if( event.type == SDLK_w)436 else if( event.type == KeyMapper::PEV_UP) 437 437 this->bUp = event.bPressed; //this->shiftCoor(0,.1,0); 438 else if( event.type == SDLK_s)438 else if( event.type == KeyMapper::PEV_DOWN) 439 439 this->bDown = event.bPressed; //this->shiftCoor(0,-.1,0); 440 440 else if( event.type == EV_MOUSE_MOTION)
Note: See TracChangeset
for help on using the changeset viewer.