Changeset 6360 for code/branches/presentation2/src
- Timestamp:
- Dec 16, 2009, 11:20:57 AM (15 years ago)
- Location:
- code/branches/presentation2/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/core/input/KeyBinder.cc
r6311 r6360 480 480 481 481 // these are the actually useful axis bindings for analog input 482 if (!bFilterAnalogNoise_ || halfAxis.relVal_ > analogThreshold_ || halfAxis.absVal_ > analogThreshold_) 483 { 484 halfAxis.execute(); 485 } 482 halfAxis.execute(); 486 483 } 487 484 … … 559 556 void KeyBinder::axisMoved(unsigned int device, unsigned int axisID, float value) 560 557 { 558 // Filter analog noise 559 if (this->bFilterAnalogNoise_ && std::abs(value) < this->analogThreshold_) 560 value = 0.0; 561 561 int i = axisID * 2; 562 562 JoyStickAxisVector& axis = *joyStickAxes_[device]; -
code/branches/presentation2/src/orxonox/controllers/NewHumanController.cc
r6328 r6360 257 257 } 258 258 259 // Reset pitch and yaw rates 260 this->currentPitch_ = 0; 261 this->currentYaw_ = 0; 262 259 263 HumanController::tick(dt); 260 264 }
Note: See TracChangeset
for help on using the changeset viewer.