Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4085 in orxonox.OLD for orxonox/trunk/src/command_node.cc


Ignore:
Timestamp:
May 6, 2005, 4:31:32 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: key-definition, and the keys get read as they should, eg. name == Usage, value == KeyName

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/command_node.cc

    r4084 r4085  
    142142  while( parser.nextVar (namebuf, valuebuf) != -1)
    143143    {
    144       index = nameToIndex (namebuf);
     144      index = nameToIndex (valuebuf);
    145145      switch( index[0])
    146146        {
    147147        case 0:
    148           PRINTF(4)("Key binding %d(%s) set to %s\n", index[1], SDLKToKeyname( index[1]), valuebuf);
    149           strcpy (aliases->keys[index[1]], valuebuf);
     148          PRINTF(4)("Key binding %d(%s) set to %s\n", index[1], SDLKToKeyname( index[1]), namebuf);
     149          strcpy (aliases->keys[index[1]], namebuf);
    150150          break;
    151151        case 1:
    152           PRINTF(4)("Button binding %d(%s) set to %s\n", index[1], SDLBToButtonname( index[1]), valuebuf);
    153           strcpy (aliases->buttons[index[1]], valuebuf);
     152          PRINTF(4)("Button binding %d(%s) set to %s\n", index[1], SDLBToButtonname( index[1]), namebuf);
     153          strcpy (aliases->buttons[index[1]], namebuf);
    154154          break;
    155155        default:
Note: See TracChangeset for help on using the changeset viewer.