Changeset 5968
- Timestamp:
- Oct 20, 2009, 6:46:50 PM (15 years ago)
- Location:
- code/branches/console/src/libraries/core
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/libraries/core/CMakeLists.txt
r5929 r5968 29 29 GraphicsManager.cc 30 30 GUIManager.cc 31 IOConsole.cc 31 32 Language.cc 32 33 LuaState.cc -
code/branches/console/src/libraries/core/input/InputBuffer.cc
r5781 r5968 186 186 void InputBuffer::processKey(const KeyEvent& evt) 187 187 { 188 // Prevent disaster when switching applications 188 189 if (evt.isModifierDown(KeyboardModifier::Alt) && evt.getKeyCode() == KeyCode::Tab) 189 190 return; … … 222 223 223 224 /** 224 @brief This update() function is called by the Input Managerif the InputBuffer is active.225 @brief This update() function is called by the InputState if the InputBuffer is active. 225 226 @param dt Delta time 226 227 */ -
code/branches/console/src/libraries/core/input/InputBuffer.h
r5781 r5968 162 162 { if (this->cursor_ > 0) { --this->cursor_; } } 163 163 164 void buttonPressed(const KeyEvent& evt); 165 164 166 private: 165 167 bool charIsAllowed(const char& input); 166 168 167 void buttonPressed(const KeyEvent& evt);168 169 void buttonHeld (const KeyEvent& evt); 169 170 void processKey (const KeyEvent& evt); -
code/branches/console/src/libraries/core/input/InputHandler.h
r5781 r5968 72 72 , text_(evt.text) 73 73 , modifiers_(0) 74 { } 75 KeyEvent(KeyCode::ByEnum key, unsigned int text, int modifiers) 76 : key_(key) 77 , text_(text) 78 , modifiers_(modifiers) 74 79 { } 75 80 bool operator==(const KeyEvent& rhs) const
Note: See TracChangeset
for help on using the changeset viewer.