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.h

    r1747 r1887  
    9999                @param type The type of the corresponding config-file
    100100                @param identifier The identifier of the class the variable belongs to
     101                @param sectionname Name of the section the configValue should be put in.
    101102                @param varname The name of the variable
    102103                @param defvalue The default-value
     
    104105            */
    105106            template <class D, class V>
    106             ConfigValueContainer(ConfigFileType type, Identifier* identifier, const std::string& varname, const D& defvalue, const V& value)
    107             {
    108                 this->init(type, identifier, varname);
     107            ConfigValueContainer(ConfigFileType type, Identifier* identifier, const std::string& sectionname, const std::string& varname, const D& defvalue, const V& value)
     108            {
     109                this->init(type, identifier, sectionname, varname);
    109110                this->initValue((V)defvalue);
    110111            }
     
    118119            */
    119120            template <class V>
    120             ConfigValueContainer(ConfigFileType type, Identifier* identifier, const std::string& varname, const std::vector<V>& defvalue)
    121             {
    122                 this->init(type, identifier, varname);
     121            ConfigValueContainer(ConfigFileType type, Identifier* identifier, const std::string& sectionname, const std::string& varname, const std::vector<V>& defvalue)
     122            {
     123                this->init(type, identifier, sectionname, varname);
    123124
    124125                this->value_ = V();
     
    266267
    267268        private:
    268             void init(ConfigFileType type, Identifier* identifier, const std::string& varname);
     269            void init(ConfigFileType type, Identifier* identifier, const std::string& sectionname, const std::string& varname);
    269270            void initValue(const MultiType& defvalue);
    270271            void initVector();
Note: See TracChangeset for help on using the changeset viewer.