Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 14, 2011, 10:30:01 PM (13 years ago)
Author:
landauf
Message:

keybind mode shouldn't be changed if it was defined explicitly in the keybindings.ini

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/input/InputCommands.h

    r7861 r7891  
    5656    {
    5757    public:
     58        BaseCommand() : bFixedKeybindMode_(false) {}
    5859        virtual ~BaseCommand() { }
     60
    5961        virtual bool execute(float abs = 1.0f, float rel = 1.0f) = 0;
    6062        virtual CommandEvaluation* getEvaluation() = 0;
     63
     64        inline void setFixedKeybindMode(bool fixed)
     65            { this->bFixedKeybindMode_ = fixed; }
     66        inline bool hasFixedKeybindMode() const
     67            { return this->bFixedKeybindMode_; }
     68
     69    private:
     70        bool bFixedKeybindMode_;
    6171    };
    6272
Note: See TracChangeset for help on using the changeset viewer.