Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6360 for code/branches


Ignore:
Timestamp:
Dec 16, 2009, 11:20:57 AM (15 years ago)
Author:
rgrieder
Message:

Fixed cursor behaviour when steering with a gamepad.

Location:
code/branches/presentation2/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/core/input/KeyBinder.cc

    r6311 r6360  
    480480
    481481        // these are the actually useful axis bindings for analog input
    482         if (!bFilterAnalogNoise_ || halfAxis.relVal_ > analogThreshold_ || halfAxis.absVal_ > analogThreshold_)
    483         {
    484             halfAxis.execute();
    485         }
     482        halfAxis.execute();
    486483    }
    487484
     
    559556    void KeyBinder::axisMoved(unsigned int device, unsigned int axisID, float value)
    560557    {
     558        // Filter analog noise
     559        if (this->bFilterAnalogNoise_ && std::abs(value) < this->analogThreshold_)
     560            value = 0.0;
    561561        int i = axisID * 2;
    562562        JoyStickAxisVector& axis = *joyStickAxes_[device];
  • code/branches/presentation2/src/orxonox/controllers/NewHumanController.cc

    r6328 r6360  
    257257        }
    258258
     259        // Reset pitch and yaw rates
     260        this->currentPitch_ = 0;
     261        this->currentYaw_ = 0;
     262
    259263        HumanController::tick(dt);
    260264    }
Note: See TracChangeset for help on using the changeset viewer.