Changeset 2800 for code/branches/gui/src/core/input/KeyBinder.cc
- Timestamp:
- Mar 19, 2009, 10:34:54 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/core/input/KeyBinder.cc
r2713 r2800 309 309 } 310 310 311 void KeyBinder:: tickMouse(float dt)311 void KeyBinder::updateMouse(float dt) 312 312 { 313 313 if (bDeriveMouseInput_) … … 349 349 // Why dividing relative value by dt? The reason lies in the simple fact, that when you 350 350 // press a button that has relative movement, that value has to be multiplied by dt to be 351 // frame rate independent. This can easily (and only) be done in tickInput(float).351 // frame rate independent. This can easily (and only) be done in updateInput(float). 352 352 // Hence we need to divide by dt here for the mouse to compensate, because the relative 353 353 // move movements have nothing to do with dt. … … 362 362 } 363 363 364 void KeyBinder:: tickJoyStick(float dt, unsigned int joyStick)364 void KeyBinder::updateJoyStick(float dt, unsigned int joyStick) 365 365 { 366 366 for (unsigned int i = 0; i < JoyStickAxisCode::numberOfAxes * 2; i++)
Note: See TracChangeset
for help on using the changeset viewer.