Changeset 11071 for code/trunk/src/libraries/core/input/JoyStick.cc
- Timestamp:
- Jan 17, 2016, 10:29:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/input/JoyStick.cc
r10624 r11071 31 31 #include <climits> 32 32 #include <ois/OISJoyStick.h> 33 #include <boost/foreach.hpp>34 33 35 34 #include "util/StringUtils.h" … … 73 72 //deviceName_ += multi_cast<std::string>(oisDevice_->getNumberOfComponents(OIS::OIS_Vector3)); 74 73 75 BOOST_FOREACH(std::string& idString,deviceNames_s)74 for (const std::string& idString : deviceNames_s) 76 75 { 77 76 if (deviceName_ == idString) … … 128 127 { 129 128 // Set initial values 130 BOOST_FOREACH(int& minVal,configMinValues_)129 for (int& minVal : configMinValues_) 131 130 minVal = INT_MAX; 132 BOOST_FOREACH(int& minVal,configMaxValues_)131 for (int& minVal : configMaxValues_) 133 132 minVal = INT_MIN; 134 BOOST_FOREACH(int& zeroVal,configZeroValues_)133 for (int& zeroVal : configZeroValues_) 135 134 zeroVal = 0; 136 135 } … … 187 186 void JoyStick::clearBuffersImpl() 188 187 { 189 for (int j = 0; j < 4; ++j)190 povStates_[j]= 0;188 for (int& state : povStates_) 189 state = 0; 191 190 } 192 191 … … 209 208 fValue *= negativeCoeffs_[axis]; 210 209 211 BOOST_FOREACH(InputState* state,inputStates_)210 for (InputState* state : inputStates_) 212 211 state->joyStickAxisMoved(this->getDeviceID(), axis, fValue); 213 212 }
Note: See TracChangeset
for help on using the changeset viewer.