Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 17, 2016, 10:29:21 PM (8 years ago)
Author:
landauf
Message:

merged branch cpp11_v3 back to trunk

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/libraries/core/input/KeyBinderManager.h

    r9667 r11071  
    3434#include <map>
    3535#include <string>
     36#include <memory>
    3637
    3738#include "util/Singleton.h"
     
    101102
    102103    private:
    103         KeyBinderManager(const KeyBinderManager&);
     104        // non-copyable:
     105        KeyBinderManager(const KeyBinderManager&) = delete;
     106        KeyBinderManager& operator=(const KeyBinderManager&) = delete;
     107
    104108        void keybindInternal(const std::string& command, bool bTemporary);
    105109        void keybindKeyPressed(const std::string& keyName);
     
    107111
    108112        // KeyBinder management
    109         KeyBinder* currentBinder_;                   //! Currently selected KeyBinder (never NULL!)
    110         std::map<std::string, KeyBinder*> binders_;  //! All loaded KeyBinders
    111         bool bDefaultFileLoaded_;                    //! Tells whether the default one is loaded
    112         std::string defaultFilename_;                //! Name of the file with the default key bindings
     113        KeyBinder* currentBinder_;                      //! Currently selected KeyBinder (never nullptr!)
     114        std::map<std::string, KeyBinder*> binders_;     //! All loaded KeyBinders
     115        bool bDefaultFileLoaded_;                       //! Tells whether the default one is loaded
     116        std::string defaultFilename_;                   //! Name of the file with the default key bindings
    113117
    114118        // keybind command related
    115         SharedPtr<LuaFunctor> callbackFunction_;     //! Function to be called when key was pressed after "keybind" command
    116         bool bBinding_;                              //! Tells whether a key binding process is active
    117         bool bTemporary_;                            //! Stores tkeybind/keybind value
    118         std::string command_;                        //! Stores the command received by (t)keybind
     119        std::shared_ptr<LuaFunctor> callbackFunction_;  //! Function to be called when key was pressed after "keybind" command
     120        bool bBinding_;                                 //! Tells whether a key binding process is active
     121        bool bTemporary_;                               //! Stores tkeybind/keybind value
     122        std::string command_;                           //! Stores the command received by (t)keybind
    119123
    120124        static KeyBinderManager* singletonPtr_s;
Note: See TracChangeset for help on using the changeset viewer.