Changeset 6360 for code/branches/presentation2/src/libraries
- Timestamp:
- Dec 16, 2009, 11:20:57 AM (15 years ago)
- File:
-
- 1 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];
Note: See TracChangeset
for help on using the changeset viewer.