Changeset 6105 for code/trunk/src/libraries/core/input
- Timestamp:
- Nov 20, 2009, 4:55:40 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/console (added) merged: 5941,5945,5968-5975,5983,5985-5986,5991-5992,5994-5996,5998,6000,6004-6007,6010-6017,6034,6037,6041,6043-6044,6089,6103-6104
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/input/InputBuffer.cc
r5781 r6105 80 80 void InputBuffer::setConfigValues() 81 81 { 82 SetConfigValue(keyRepeatDeleay_, 0.4).description("Key repeat del eay of the input buffer");82 SetConfigValue(keyRepeatDeleay_, 0.4).description("Key repeat delay of the input buffer"); 83 83 SetConfigValue(keyRepeatTime_, 0.022).description("Key repeat time of the input buffer"); 84 84 … … 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/trunk/src/libraries/core/input/InputBuffer.h
r5781 r6105 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/trunk/src/libraries/core/input/InputHandler.h
r5781 r6105 73 73 , modifiers_(0) 74 74 { } 75 KeyEvent(KeyCode::ByEnum key, unsigned int text, int modifiers) 76 : key_(key) 77 , text_(text) 78 , modifiers_(modifiers) 79 { } 75 80 bool operator==(const KeyEvent& rhs) const 76 81 { return rhs.key_ == key_; } … … 97 102 98 103 Derive from this class if you wish to receive input events. 99 But keep in mind that this is pointless wi htout first having an InputState.104 But keep in mind that this is pointless without first having an InputState. 100 105 @note 101 106 The definitions for the button events with the weird arguments are simply 102 to avoid redun ant code in the input devices.107 to avoid redundant code in the input devices. 103 108 */ 104 109 class _CoreExport InputHandler -
code/trunk/src/libraries/core/input/InputManager.cc
r6021 r6105 190 190 // Exception-safety 191 191 Loki::ScopeGuard guard = Loki::MakeGuard(OIS::InputManager::destroyInputSystem, oisInputManager_); 192 CCOUT( ORX_DEBUG) << "Created OIS input manager." << std::endl;192 CCOUT(4) << "Created OIS input manager." << std::endl; 193 193 194 194 if (oisInputManager_->getNumberOfDevices(OIS::OISKeyboard) > 0) … … 232 232 } 233 233 else 234 CCOUT( ORX_WARNING) << "Warning: No mouse found! Proceeding without mouse support." << std::endl;234 CCOUT(2) << "Warning: No mouse found! Proceeding without mouse support." << std::endl; 235 235 } 236 236
Note: See TracChangeset
for help on using the changeset viewer.