Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 1, 2010, 10:05:56 PM (14 years ago)
Author:
rgrieder
Message:

Added support for keybindings.ini merging:
When running development builds, the keybinder will merge the local file and the one from the data folder.
Catch: if you want to remove a binding, you'll have to write "NoBinding" (not case sensitive) to override the default command

The keybind command already does that for you though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gamestate/src/libraries/core/input/Button.h

    r6432 r6437  
    5252        virtual bool addParamCommand(ParamCommand* command) { return false; }
    5353        void parse(const std::string& binding);
    54         void readBinding(ConfigFile* configFile);
    55         void setBinding(ConfigFile* configFile, const std::string& binding, bool bTemporary);
     54        void readBinding(ConfigFile* configFile, ConfigFile* fallbackFile);
     55        void setBinding(ConfigFile* configFile, ConfigFile* fallbackFile, const std::string& binding, bool bTemporary);
    5656        bool execute(KeybindMode::Value mode, float abs = 1.0f, float rel = 1.0f);
    5757
Note: See TracChangeset for help on using the changeset viewer.