Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2008, 4:02:03 PM (16 years ago)
Author:
rgrieder
Message:
  • fixed some bugs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/core/InputManager.cc

    r1349 r1391  
    603603
    604604    // 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];
    606606    unsigned int iButton = 0;
    607607    while (iButton < buttonsDown.size() && buttonsDown[iButton] != button)
     
    625625
    626626    // remove the button from the joyStickButtonsDown_ list
    627     std::vector<int> buttonsDown = joyStickButtonsDown_[iJoyStick];
     627    std::vector<int>& buttonsDown = joyStickButtonsDown_[iJoyStick];
    628628    for (unsigned int iButton = 0; iButton < buttonsDown.size(); iButton++)
    629629    {
     
    643643  bool InputManager::axisMoved(const OIS::JoyStickEvent &arg, int axis)
    644644  {
    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;}
    646647    // use the device to identify which one called the method
    647648    OIS::JoyStick* joyStick = (OIS::JoyStick*)arg.device;
     
    659660  bool InputManager::sliderMoved(const OIS::JoyStickEvent &arg, int id)
    660661  {
     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;}
    661664    //CCOUT(3) << arg.state.mSliders[id].abX << "\t |" << arg.state.mSliders[id].abY << std::endl;
    662665    // use the device to identify which one called the method
Note: See TracChangeset for help on using the changeset viewer.