Changeset 1391 for code/branches/network/src/core/InputManager.cc
- Timestamp:
- May 23, 2008, 4:02:03 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/core/InputManager.cc
r1349 r1391 603 603 604 604 // check whether the button already is in the list (can happen when focus was lost) 605 std::vector<int> buttonsDown = joyStickButtonsDown_[iJoyStick];605 std::vector<int>& buttonsDown = joyStickButtonsDown_[iJoyStick]; 606 606 unsigned int iButton = 0; 607 607 while (iButton < buttonsDown.size() && buttonsDown[iButton] != button) … … 625 625 626 626 // remove the button from the joyStickButtonsDown_ list 627 std::vector<int> buttonsDown = joyStickButtonsDown_[iJoyStick];627 std::vector<int>& buttonsDown = joyStickButtonsDown_[iJoyStick]; 628 628 for (unsigned int iButton = 0; iButton < buttonsDown.size(); iButton++) 629 629 { … … 643 643 bool InputManager::axisMoved(const OIS::JoyStickEvent &arg, int axis) 644 644 { 645 //CCOUT(3) << arg.state.mAxes[axis].abs << std::endl; 645 //if (arg.state.mAxes[axis].abs > 10000 || arg.state.mAxes[axis].abs < -10000) 646 //{ CCOUT(3) << "axis " << axis << " moved" << arg.state.mAxes[axis].abs << std::endl;} 646 647 // use the device to identify which one called the method 647 648 OIS::JoyStick* joyStick = (OIS::JoyStick*)arg.device; … … 659 660 bool InputManager::sliderMoved(const OIS::JoyStickEvent &arg, int id) 660 661 { 662 //if (arg.state.mSliders[id].abX > 10000 || arg.state.mSliders[id].abX < -10000) 663 //{CCOUT(3) << "slider " << id << " moved" << arg.state.mSliders[id].abX << std::endl;} 661 664 //CCOUT(3) << arg.state.mSliders[id].abX << "\t |" << arg.state.mSliders[id].abY << std::endl; 662 665 // use the device to identify which one called the method
Note: See TracChangeset
for help on using the changeset viewer.