Changeset 966 for code/branches/core2/src/orxonox
- Timestamp:
- Mar 30, 2008, 9:27:04 PM (17 years ago)
- Location:
- code/branches/core2/src/orxonox/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core2/src/orxonox/core/CMakeLists.txt
r955 r966 28 28 TARGET_LINK_LIBRARIES( core 29 29 util 30 ${OIS_LIBRARIES} 30 31 ) -
code/branches/core2/src/orxonox/core/InputBuffer.cc
r955 r966 29 29 30 30 #include "InputBuffer.h" 31 #include "util/Clipboard.h" 31 32 32 33 namespace orxonox … … 132 133 } 133 134 135 if (this->keyboard_->isModifierDown(OIS::Keyboard::Ctrl)) 136 { 137 if (e.key == OIS::KC_V) 138 { 139 this->append(fromClipboard()); 140 return true; 141 } 142 else if (e.key == OIS::KC_C) 143 { 144 toClipboard(this->buffer_); 145 return true; 146 } 147 else if (e.key == OIS::KC_X) 148 { 149 toClipboard(this->buffer_); 150 this->clear(); 151 return true; 152 } 153 } 154 else if (this->keyboard_->isModifierDown(OIS::Keyboard::Shift)) 155 { 156 if (e.key == OIS::KC_INSERT) 157 { 158 this->append(fromClipboard()); 159 return true; 160 } 161 else if (e.key == OIS::KC_DELETE) 162 { 163 toClipboard(this->buffer_); 164 this->clear(); 165 return true; 166 } 167 } 168 134 169 if (this->bActivated_) 135 170 {
Note: See TracChangeset
for help on using the changeset viewer.