- Timestamp:
- Dec 2, 2015, 11:22:03 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/input/KeyBinder.cc
r10821 r10916 153 153 void KeyBinder::buttonThresholdChanged() 154 154 { 155 for ( auto & elem: allHalfAxes_)156 if (! elem->bButtonThresholdUser_)157 elem->buttonThreshold_ = this->buttonThreshold_;155 for (HalfAxis* halfAxis : allHalfAxes_) 156 if (!halfAxis->bButtonThresholdUser_) 157 halfAxis->buttonThreshold_ = this->buttonThreshold_; 158 158 } 159 159 … … 383 383 it->second->clear(); 384 384 385 for ( auto & elem: paramCommandBuffer_)386 delete elem;385 for (BufferedParamCommand* command : paramCommandBuffer_) 386 delete command; 387 387 paramCommandBuffer_.clear(); 388 388 } … … 394 394 { 395 395 // iterate over all buttons 396 for (const auto & elem: this->allButtons_)397 { 398 Button* button = elem.second;396 for (const auto& mapEntry : this->allButtons_) 397 { 398 Button* button = mapEntry.second; 399 399 400 400 // iterate over all modes … … 465 465 this->mousePosition_[1] = 0.0f; 466 466 467 for ( auto & elem: mouseAxes_)468 elem.reset();467 for (HalfAxis& axis : mouseAxes_) 468 axis.reset(); 469 469 } 470 470 … … 505 505 } 506 506 507 for ( auto & elem: mouseAxes_)507 for (HalfAxis& axis : mouseAxes_) 508 508 { 509 509 // Why dividing relative value by dt? The reason lies in the simple fact, that when you … … 515 515 { 516 516 // just ignore if dt == 0.0 because we have multiplied by 0.0 anyway.. 517 elem.relVal_ /= dt;518 } 519 520 tickHalfAxis( elem);517 axis.relVal_ /= dt; 518 } 519 520 tickHalfAxis(axis); 521 521 } 522 522 }
Note: See TracChangeset
for help on using the changeset viewer.