Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 6, 2008, 12:31:32 AM (16 years ago)
Author:
rgrieder
Message:

FIRST THINGS FIRST: Delete or rename your keybindings.ini (def_keybindings.ini already has the most important bindings) or else you won't be able to do anything!

Changes:

  • Multiple joy stick support should now fully work with KeyBinder too (only tested with 0/1 joystick)
  • Reloading the OIS Devices now works with KeyBinder too
  • Modified ConfigValueContainer to accept arbitrary section names
  • added tkeybind to temporary bind a command to a key
  • Fixed dlleport issue in ArgumentCompletionFunctions.h

Internal changes:

  • General cleanup in initialisation of KeyBinder
  • All names of keys/buttons/axes are now statically saved in InputInterfaces.h
  • Move a magic value in KeyBinder to a configValue (MouseWheelStepSize_)
  • Separated ConfigValues from Keybinding ConfigValueContainer in KeyBinder (looks much nicer now ;))
  • Moved some performance critical small function to the inline section
  • Removed the ugly keybind function construct from the InputManager
  • More 'harmonising' work in KeyBinder
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/ConfigValueContainer.cc

    r1795 r1887  
    5050        @brief Initializes the ConfigValueContainer with defaultvalues.
    5151    */
    52     void ConfigValueContainer::init(ConfigFileType type, Identifier* identifier, const std::string& varname)
     52    void ConfigValueContainer::init(ConfigFileType type, Identifier* identifier, const std::string& sectionname, const std::string& varname)
    5353    {
    5454        this->type_ = type;
    5555        this->identifier_ = identifier;
    56         this->sectionname_ = identifier->getName();
     56        this->sectionname_ = sectionname;
    5757        this->varname_ = varname;
    5858        this->callback_ = 0;
     
    331331        if (!this->bAddedDescription_)
    332332        {
    333             this->description_ = std::string("ConfigValueDescription::" + this->identifier_->getName() + "::" + this->varname_);
     333            this->description_ = std::string("ConfigValueDescription::" + this->sectionname_ + "::" + this->varname_);
    334334            AddLanguageEntry(this->description_, description);
    335335            this->bAddedDescription_ = true;
Note: See TracChangeset for help on using the changeset viewer.