Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10647 in orxonox.OLD for branches/hud/src/lib/event/key_mapper.cc


Ignore:
Timestamp:
May 3, 2007, 4:54:42 PM (17 years ago)
Author:
bknecht
Message:

Camera:

  • Added new ViewMode ViewFPS

FPSPlayer:

  • fixed crosshair bug

FPSPlayer/KeyMapper/Globals:

  • started to implement crouch function
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/hud/src/lib/event/key_mapper.cc

    r10618 r10647  
    4646int KeyMapper::PEV_STRAFE_RIGHT      = EV_UNKNOWN;
    4747int KeyMapper::PEV_JUMP              = EV_UNKNOWN;
     48int KeyMapper::PEV_CROUCH            = EV_UNKNOWN;
    4849
    4950int KeyMapper::PEV_FIRE1             = EV_UNKNOWN;
     
    8283      {&KeyMapper::PEV_ROLL_RIGHT,           CONFIG_NAME_PLAYER_ROLL_LEFT,       SDLK_z},
    8384      {&KeyMapper::PEV_ROLL_LEFT,            CONFIG_NAME_PLAYER_ROLL_RIGHT,      SDLK_c},
    84       {&KeyMapper::PEV_STRAFE_LEFT,          "StrafeLeft",                       SDLK_q},
    85       {&KeyMapper::PEV_STRAFE_RIGHT,         "StrafeRight",                      SDLK_e},
    86       {&KeyMapper::PEV_JUMP,                 "Jump",                             SDLK_SPACE},
     85      {&KeyMapper::PEV_STRAFE_LEFT,          CONFIG_NAME_PLAYER_STRAFE_LEFT,     SDLK_q},
     86      {&KeyMapper::PEV_STRAFE_RIGHT,         CONFIG_NAME_PLAYER_STRAFE_RIGHT,    SDLK_e},
     87      {&KeyMapper::PEV_JUMP,                 CONFIG_NAME_PLAYER_JUMP,            SDLK_SPACE},
     88      {&KeyMapper::PEV_CROUCH,               CONFIG_NAME_PLAYER_CROUCH,          SDLK_LCTRL},
    8789
    8890      {&KeyMapper::PEV_FIRE1,                CONFIG_NAME_PLAYER_FIRE,            EV_MOUSE_BUTTON_LEFT},
    89       {&KeyMapper::PEV_FIRE2,                "Fire2",                            EV_MOUSE_BUTTON_RIGHT},
     91      {&KeyMapper::PEV_FIRE2,                CONFIG_NAME_PLAYER_FIRE2,           EV_MOUSE_BUTTON_RIGHT},
    9092      {&KeyMapper::PEV_NEXT_WEAPON,          CONFIG_NAME_PLAYER_NEXT_WEAPON,     EV_MOUSE_BUTTON_WHEELUP},
    9193      {&KeyMapper::PEV_PREVIOUS_WEAPON,      CONFIG_NAME_PLAYER_PREV_WEAPON,     EV_MOUSE_BUTTON_WHEELDOWN},
Note: See TracChangeset for help on using the changeset viewer.