Changeset 3286 for code/branches/core4/src/core/input/Mouse.cc
- Timestamp:
- Jul 13, 2009, 8:54:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/core/input/Mouse.cc
r3276 r3286 30 30 31 31 #include <ois/OISMouse.h> 32 #include <boost/foreach.hpp>33 32 #include "InputState.h" 34 33 #include "core/ConsoleCommand.h" … … 41 40 namespace orxonox 42 41 { 43 Mouse::Mouse(unsigned int id, unsigned int windowWidth, unsigned int windowHeight)44 : super(id )42 Mouse::Mouse(unsigned int id, OIS::InputManager* oisInputManager, unsigned int windowWidth, unsigned int windowHeight) 43 : super(id, oisInputManager) 45 44 { 46 45 this->setMouseClipping(windowWidth, windowHeight); … … 74 73 IntVector2 rel(e.state.X.rel, e.state.Y.rel); 75 74 IntVector2 clippingSize(e.state.width, e.state.height); 76 BOOST_FOREACH(InputState* state, inputStates_)77 state->mouseMoved(abs, rel, clippingSize);75 for (unsigned int i = 0; i < inputStates_.size(); ++i) 76 inputStates_[i]->mouseMoved(abs, rel, clippingSize); 78 77 } 79 78 … … 81 80 if (e.state.Z.rel != 0) 82 81 { 83 BOOST_FOREACH(InputState* state, inputStates_)84 state->mouseScrolled(e.state.Z.abs, e.state.Z.rel);82 for (unsigned int i = 0; i < inputStates_.size(); ++i) 83 inputStates_[i]->mouseScrolled(e.state.Z.abs, e.state.Z.rel); 85 84 } 86 85
Note: See TracChangeset
for help on using the changeset viewer.