Changeset 1349 for code/trunk/src/core/InputBuffer.cc
- Timestamp:
- May 21, 2008, 9:07:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/core/InputBuffer.cc
r1293 r1349 173 173 } 174 174 175 /** 176 * This tick() function is called by the InputManager if the InputBuffer is active. 177 * @param dt Delta time 178 */ 175 179 void InputBuffer::tick(float dt) 176 180 { … … 187 191 } 188 192 189 boolInputBuffer::keyPressed(const KeyEvent &evt)193 void InputBuffer::keyPressed(const KeyEvent &evt) 190 194 { 191 195 lastKey_ = evt.key; … … 195 199 196 200 processKey(evt); 197 return true; 198 } 199 200 bool InputBuffer::keyHeld(const KeyEvent& evt) 201 } 202 203 void InputBuffer::keyHeld(const KeyEvent& evt) 201 204 { 202 205 if (evt.key == lastKey_) … … 208 211 } 209 212 } 210 return true;211 213 } 212 214
Note: See TracChangeset
for help on using the changeset viewer.