Changeset 10778 for code/branches/cpp11_v2/src/libraries/core
- Timestamp:
- Nov 8, 2015, 3:12:17 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/libraries/core/input
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/input/InputManager.cc
r10768 r10778 39 39 #include <ois/OISException.h> 40 40 #include <ois/OISInputManager.h> 41 #include <boost/foreach.hpp>42 41 #include <loki/ScopeGuard.h> 43 42 … … 310 309 orxout(verbose, context::input) << "InputManager: Destroying devices..." << endl; 311 310 312 BOOST_FOREACH(InputDevice*& device,devices_)311 for (InputDevice*& device : devices_) 313 312 { 314 313 if (device == nullptr) … … 387 386 // Capture all the input and collect the function calls 388 387 // No event gets triggered here yet! 389 BOOST_FOREACH(InputDevice* device,devices_)388 for (InputDevice* device : devices_) 390 389 if (device != nullptr) 391 390 device->update(time); … … 466 465 void InputManager::clearBuffers() 467 466 { 468 BOOST_FOREACH(InputDevice* device,devices_)467 for (InputDevice* device : devices_) 469 468 if (device != nullptr) 470 469 device->clearBuffers(); … … 476 475 << "When done, put the axex in the middle position and press enter." << endl; 477 476 478 BOOST_FOREACH(InputDevice* device,devices_)477 for (InputDevice* device : devices_) 479 478 if (device != nullptr) 480 479 device->startCalibration(); … … 487 486 void InputManager::stopCalibration() 488 487 { 489 BOOST_FOREACH(InputDevice* device,devices_)488 for (InputDevice* device : devices_) 490 489 if (device != nullptr) 491 490 device->stopCalibration(); -
code/branches/cpp11_v2/src/libraries/core/input/JoyStick.cc
r10624 r10778 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 } … … 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.