- Timestamp:
- Feb 3, 2006, 12:04:51 AM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/defs/globals.h
r5996 r6997 68 68 #define CONFIG_NAME_ALWAYS_SHOW_GUI "Always-Show-The-Gui" 69 69 // evenets 70 #define CONFIG_NAME_PLAYER_ UP "Up"71 #define CONFIG_NAME_PLAYER_ DOWN "Down"70 #define CONFIG_NAME_PLAYER_FORWARD "Forward" 71 #define CONFIG_NAME_PLAYER_BACKWARD "Backward" 72 72 #define CONFIG_NAME_PLAYER_LEFT "Left" 73 73 #define CONFIG_NAME_PLAYER_RIGHT "Right" -
trunk/src/lib/event/key_mapper.cc
r5978 r6997 33 33 34 34 /* initialize all variables to a reasonable value*/ 35 int KeyMapper::PEV_ UP= EV_UNKNOWN;36 int KeyMapper::PEV_ DOWN= EV_UNKNOWN;35 int KeyMapper::PEV_FORWARD = EV_UNKNOWN; 36 int KeyMapper::PEV_BACKWARD = EV_UNKNOWN; 37 37 int KeyMapper::PEV_LEFT = EV_UNKNOWN; 38 38 int KeyMapper::PEV_RIGHT = EV_UNKNOWN; … … 67 67 */ 68 68 orxKeyMapping map[] = { 69 {&KeyMapper::PEV_ UP, CONFIG_NAME_PLAYER_UP},70 {&KeyMapper::PEV_ DOWN, CONFIG_NAME_PLAYER_DOWN},69 {&KeyMapper::PEV_FORWARD, CONFIG_NAME_PLAYER_FORWARD}, 70 {&KeyMapper::PEV_BACKWARD, CONFIG_NAME_PLAYER_BACKWARD}, 71 71 {&KeyMapper::PEV_LEFT, CONFIG_NAME_PLAYER_LEFT}, 72 72 {&KeyMapper::PEV_RIGHT, CONFIG_NAME_PLAYER_RIGHT}, -
trunk/src/lib/event/key_mapper.h
r5978 r6997 39 39 40 40 public: 41 static int PEV_ UP; //!< upbutton42 static int PEV_ DOWN; //!< downbuttton41 static int PEV_FORWARD; //!< forward button 42 static int PEV_BACKWARD; //!< backward buttton 43 43 static int PEV_LEFT; //!< left button 44 44 static int PEV_RIGHT; //!< right button -
trunk/src/lib/gui/gtk_gui/gui_keys.cc
r5978 r6997 115 115 116 116 pKeysBox->setGroupName(player); 117 pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_ UP, "w"));118 pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_ DOWN, "s"));117 pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_FORWARD, "w")); 118 pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_BACKWARD, "s")); 119 119 pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_LEFT, "a")); 120 120 pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_RIGHT, "d")); -
trunk/src/util/track/pilot_node.cc
r4836 r6997 103 103 void PilotNode::process( const Event &event) 104 104 { 105 if( event.type == KeyMapper::PEV_ UP)105 if( event.type == KeyMapper::PEV_FORWARD) 106 106 { 107 107 this->bUp = event.bPressed; 108 108 } 109 else if( event.type == KeyMapper::PEV_ DOWN)109 else if( event.type == KeyMapper::PEV_BACKWARD) 110 110 { 111 111 this->bDown = event.bPressed; -
trunk/src/world_entities/space_ships/helicopter.cc
r6986 r6997 150 150 151 151 //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); 154 154 registerEvent(KeyMapper::PEV_LEFT); 155 155 registerEvent(KeyMapper::PEV_RIGHT); … … 412 412 else if( event.type == SDLK_c) 413 413 this->bDescend = event.bPressed; 414 else if( event.type == KeyMapper::PEV_ UP)414 else if( event.type == KeyMapper::PEV_FORWARD) 415 415 this->bUp = event.bPressed; 416 else if( event.type == KeyMapper::PEV_ DOWN)416 else if( event.type == KeyMapper::PEV_BACKWARD) 417 417 this->bDown = event.bPressed; 418 418 else if( event.type == EV_MOUSE_MOTION) -
trunk/src/world_entities/space_ships/hover.cc
r6986 r6997 141 141 142 142 //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); 145 145 registerEvent(KeyMapper::PEV_LEFT); 146 146 registerEvent(KeyMapper::PEV_RIGHT); … … 366 366 else if( event.type == SDLK_c) 367 367 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) 369 369 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) 371 371 this->bBackward = event.bPressed; //this->shiftCoor(0,-.1,0); 372 372 else if( event.type == EV_MOUSE_MOTION) -
trunk/src/world_entities/space_ships/space_ship.cc
r6994 r6997 170 170 171 171 //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); 174 174 registerEvent(KeyMapper::PEV_LEFT); 175 175 registerEvent(KeyMapper::PEV_RIGHT); … … 490 490 else if( event.type == KeyMapper::PEV_RIGHT) 491 491 this->bRollR = event.bPressed; 492 else if( event.type == KeyMapper::PEV_ UP)492 else if( event.type == KeyMapper::PEV_FORWARD) 493 493 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) 495 495 this->bDown = event.bPressed; //this->shiftCoor(0,-.1,0); 496 496 else if( event.type == EV_MOUSE_MOTION)
Note: See TracChangeset
for help on using the changeset viewer.