Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 9, 2009, 9:34:47 AM (15 years ago)
Author:
rgrieder
Message:

Use base class method for getInstance (for tolua interface).

Location:
code/branches/presentation2/src/libraries/core/input
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/core/input/InputManager.h

    r6183 r6278  
    171171        std::pair<int, int> getMousePosition() const;
    172172       
    173         static InputManager& getInstance() { return *singletonPtr_s; } // tolua_export
     173        static InputManager& getInstance() { return Singleton<InputManager>::getInstance(); } // tolua_export
    174174
    175175    private: // functions
  • code/branches/presentation2/src/libraries/core/input/KeyBinderManager.h

    r6266 r6278  
    6262        void setConfigValues();
    6363
    64         static KeyBinderManager& getInstance() { return Singleton<KeyBinderManager>::getInstance(); } //tolua_export
     64        static KeyBinderManager& getInstance() //tolua_export
     65            { return Singleton<KeyBinderManager>::getInstance(); }
    6566        //! Returns the currently selected KeyBinder
    66         KeyBinder* getCurrent() { return this->currentBinder_; } //tolua_export
     67        KeyBinder* getCurrent() //tolua_export
     68            { return this->currentBinder_; }
    6769        //! Like getCurrent(), but returns it as InputHandler* (so you don't have to include KeyBinder.h)
    6870        InputHandler* getCurrentAsHandler();
     
    9597
    9698        //! Bind 'command' to any key pressed after this call (use with care!)
    97         inline void keybind(const std::string& command) { this->keybindInternal(command, false); } //tolua_export
     99        inline void keybind(const std::string& command) //tolua_export
     100            { this->keybindInternal(command, false); }
    98101        //! Bind 'command' to any key pressed after this call (use with care!), but temporarily (no file save)
    99102        inline void tkeybind(const std::string& command)
Note: See TracChangeset for help on using the changeset viewer.