Changeset 2908 for code/branches/questsystem5/src/core/input/KeyBinder.cc
- Timestamp:
- Apr 8, 2009, 12:58:47 AM (15 years ago)
- Location:
- code/branches/questsystem5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5
- Property svn:mergeinfo changed
-
code/branches/questsystem5/src/core/input/KeyBinder.cc
r2907 r2908 42 42 #include "core/CoreIncludes.h" 43 43 #include "core/ConfigFileManager.h" 44 #include "core/Core.h" 44 45 #include "InputCommands.h" 45 46 #include "InputManager.h" … … 308 309 } 309 310 310 void KeyBinder:: updateMouse(float dt)311 void KeyBinder::tickMouse(float dt) 311 312 { 312 313 if (bDeriveMouseInput_) … … 348 349 // Why dividing relative value by dt? The reason lies in the simple fact, that when you 349 350 // press a button that has relative movement, that value has to be multiplied by dt to be 350 // frame rate independent. This can easily (and only) be done in updateInput(float).351 // frame rate independent. This can easily (and only) be done in tickInput(float). 351 352 // Hence we need to divide by dt here for the mouse to compensate, because the relative 352 353 // move movements have nothing to do with dt. … … 361 362 } 362 363 363 void KeyBinder:: updateJoyStick(float dt, unsigned int joyStick)364 void KeyBinder::tickJoyStick(float dt, unsigned int joyStick) 364 365 { 365 366 for (unsigned int i = 0; i < JoyStickAxisCode::numberOfAxes * 2; i++)
Note: See TracChangeset
for help on using the changeset viewer.