Changeset 6278 for code/branches/presentation2/src/libraries/core
- Timestamp:
- Dec 9, 2009, 9:34:47 AM (15 years ago)
- 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 171 171 std::pair<int, int> getMousePosition() const; 172 172 173 static InputManager& getInstance() { return *singletonPtr_s; } // tolua_export173 static InputManager& getInstance() { return Singleton<InputManager>::getInstance(); } // tolua_export 174 174 175 175 private: // functions -
code/branches/presentation2/src/libraries/core/input/KeyBinderManager.h
r6266 r6278 62 62 void setConfigValues(); 63 63 64 static KeyBinderManager& getInstance() { return Singleton<KeyBinderManager>::getInstance(); } //tolua_export 64 static KeyBinderManager& getInstance() //tolua_export 65 { return Singleton<KeyBinderManager>::getInstance(); } 65 66 //! Returns the currently selected KeyBinder 66 KeyBinder* getCurrent() { return this->currentBinder_; } //tolua_export 67 KeyBinder* getCurrent() //tolua_export 68 { return this->currentBinder_; } 67 69 //! Like getCurrent(), but returns it as InputHandler* (so you don't have to include KeyBinder.h) 68 70 InputHandler* getCurrentAsHandler(); … … 95 97 96 98 //! 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); } 98 101 //! Bind 'command' to any key pressed after this call (use with care!), but temporarily (no file save) 99 102 inline void tkeybind(const std::string& command)
Note: See TracChangeset
for help on using the changeset viewer.