Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4834 in orxonox.OLD for orxonox/trunk/src/lib/event


Ignore:
Timestamp:
Jul 11, 2005, 5:47:23 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: crosshair in WeaponManager (instead of World) and implemented easy Cyling for LoadParam

Location:
orxonox/trunk/src/lib/event
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/event/event_handler.h

    r4780 r4834  
    1212#include "event_def.h"
    1313
     14// FORWARD DECLARATION
    1415class EventListener;
    15 
     16template <class T> class tList;
    1617
    1718//! The one Event Handler from Orxonox
  • orxonox/trunk/src/lib/event/key_mapper.cc

    r4833 r4834  
    5757//! this is the mapping array from names to ids: enter all orxonox.conf keys here
    5858/** @todo use globals.h for this.... everything is done there for those Options,
    59  * and you do not have to care about The namings
     59 * and you do not have to care about The namings, as they might change
    6060 */
    6161orxKeyMapping map[] = {
    62   {&KeyMapper::PEV_UP,                   "Up"},
    63   {&KeyMapper::PEV_DOWN,                 "Down"},
    64   {&KeyMapper::PEV_LEFT,                 "Left"},
    65   {&KeyMapper::PEV_RIGHT,                "Right"},
     62  {&KeyMapper::PEV_UP,                   CONFIG_NAME_PLAYER_UP},
     63  {&KeyMapper::PEV_DOWN,                 CONFIG_NAME_PLAYER_DOWN},
     64  {&KeyMapper::PEV_LEFT,                 CONFIG_NAME_PLAYER_LEFT},
     65  {&KeyMapper::PEV_RIGHT,                CONFIG_NAME_PLAYER_RIGHT},
    6666  {&KeyMapper::PEV_STRAFE_LEFT,          "StrafeLeft"},
    6767  {&KeyMapper::PEV_STRAFE_RIGHT,         "StrafeRight"},
    6868
    69   {&KeyMapper::PEV_FIRE1,                "Fire"},
     69  {&KeyMapper::PEV_FIRE1,                CONFIG_NAME_PLAYER_FIRE},
    7070  {&KeyMapper::PEV_FIRE1,                "Fire1"},
    7171  {&KeyMapper::PEV_FIRE2,                "Fire2"},
     
    7474
    7575
    76   {&KeyMapper::PEV_VIEW0,                "view0"},
    77   {&KeyMapper::PEV_VIEW1,                "view1"},
    78   {&KeyMapper::PEV_VIEW2,                "view2"},
    79   {&KeyMapper::PEV_VIEW3,                "view3"},
    80   {&KeyMapper::PEV_VIEW4,                "view4"},
    81   {&KeyMapper::PEV_VIEW5,                "view5"},
    82 
    83   {&KeyMapper::PEV_NEXT_WORLD,           "Next-World"},
    84   {&KeyMapper::PEV_PREVIOUS_WORLD,       "Prev-World"},
    85 
    86   {&KeyMapper::PEV_PAUSE,                "Pause"},
    87   {&KeyMapper::PEV_QUIT,                 "Quit"},
     76  {&KeyMapper::PEV_VIEW0,                CONFIG_NAME_VIEW0},
     77  {&KeyMapper::PEV_VIEW1,                CONFIG_NAME_VIEW1},
     78  {&KeyMapper::PEV_VIEW2,                CONFIG_NAME_VIEW2},
     79  {&KeyMapper::PEV_VIEW3,                CONFIG_NAME_VIEW3},
     80  {&KeyMapper::PEV_VIEW4,                CONFIG_NAME_VIEW4},
     81  {&KeyMapper::PEV_VIEW5,                CONFIG_NAME_VIEW5},
     82
     83  {&KeyMapper::PEV_NEXT_WORLD,           CONFIG_NAME_NEXT_WORLD},
     84  {&KeyMapper::PEV_PREVIOUS_WORLD,       CONFIG_NAME_PREV_WORLD},
     85
     86  {&KeyMapper::PEV_PAUSE,                CONFIG_NAME_PAUSE},
     87  {&KeyMapper::PEV_QUIT,                 CONFIG_NAME_QUIT},
    8888  {NULL, NULL}
    8989};
Note: See TracChangeset for help on using the changeset viewer.