Changeset 6506 in orxonox.OLD for branches/spaceshipcontrol/src/world_entities/space_ships/helicopter.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/helicopter.cc
r6505 r6506 134 134 135 135 //add events to the eventlist 136 registerEvent( SDLK_w);137 registerEvent( SDLK_s);138 registerEvent( SDLK_a);139 registerEvent( SDLK_d);140 registerEvent(SDLK_q);136 registerEvent(KeyMapper::PEV_UP); 137 registerEvent(KeyMapper::PEV_DOWN); 138 registerEvent(KeyMapper::PEV_LEFT); 139 registerEvent(KeyMapper::PEV_RIGHT); 140 //registerEvent(SDLK_q); 141 141 registerEvent(SDLK_e); 142 142 registerEvent(SDLK_c); … … 144 144 registerEvent(KeyMapper::PEV_NEXT_WEAPON); 145 145 registerEvent(KeyMapper::PEV_PREVIOUS_WEAPON); 146 registerEvent(SDLK_PAGEUP);147 registerEvent(SDLK_PAGEDOWN);146 //registerEvent(SDLK_PAGEUP); 147 //registerEvent(SDLK_PAGEDOWN); 148 148 registerEvent(EV_MOUSE_MOTION); 149 149 … … 442 442 443 443 444 if( event.type == SDLK_a)444 if( event.type == KeyMapper::PEV_LEFT) 445 445 this->bLeft = event.bPressed; 446 else if( event.type == SDLK_d)446 else if( event.type == KeyMapper::PEV_RIGHT) 447 447 this->bRight = event.bPressed; 448 448 else if( event.type == KeyMapper::PEV_FIRE1) … … 456 456 else if( event.type == SDLK_c) 457 457 this->bDescend = event.bPressed; //this->shiftCoor(0,-.1,0); 458 else if( event.type == SDLK_w)458 else if( event.type == KeyMapper::PEV_UP) 459 459 this->bUp = event.bPressed; //this->shiftCoor(0,.1,0); 460 else if( event.type == SDLK_s)460 else if( event.type == KeyMapper::PEV_DOWN) 461 461 this->bDown = event.bPressed; //this->shiftCoor(0,-.1,0); 462 462 else if( event.type == EV_MOUSE_MOTION)
Note: See TracChangeset
for help on using the changeset viewer.