Changeset 3192 for code/branches/pch/src/core/input
- Timestamp:
- Jun 18, 2009, 10:00:15 AM (16 years ago)
- Location:
- code/branches/pch/src/core/input
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/core/input/InputManager.cc
r3187 r3192 1166 1166 else 1167 1167 { 1168 float fValue = value - joyStickCalibrations_[iJoyStick].middleValue[axis];1168 float fValue = static_cast<float>(value - joyStickCalibrations_[iJoyStick].middleValue[axis]); 1169 1169 if (fValue > 0.0f) 1170 1170 fValue *= joyStickCalibrations_[iJoyStick].positiveCoeff[axis]; -
code/branches/pch/src/core/input/KeyBinder.cc
r3148 r3192 317 317 { 318 318 mouseAxes_[2*i + 0].absVal_ 319 = -mouseRelative_[i] / deriveTime_ * 0.0005 * mouseSensitivityDerived_;319 = -mouseRelative_[i] / deriveTime_ * 0.0005f * mouseSensitivityDerived_; 320 320 mouseAxes_[2*i + 1].absVal_ = 0.0f; 321 321 } … … 324 324 mouseAxes_[2*i + 0].absVal_ = 0.0f; 325 325 mouseAxes_[2*i + 1].absVal_ 326 = mouseRelative_[i] / deriveTime_ * 0.0005 * mouseSensitivityDerived_;326 = mouseRelative_[i] / deriveTime_ * 0.0005f * mouseSensitivityDerived_; 327 327 } 328 328 else
Note: See TracChangeset
for help on using the changeset viewer.