Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 12, 2008, 11:02:40 PM (16 years ago)
Author:
landauf
Message:

small cleanup in KeyBinder (don't panic reto, I've only replaced SetConfigValueGeneric with SetConfigValue) and ParticleProjectile uses now Particle::speedChanged() as a callback function instead of implementing it's own version.

Location:
code/branches/core3/src
Files:
3 edited

Legend:

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

    r1596 r1597  
    234234  void KeyBinder::setConfigValues()
    235235  {
    236     SetConfigValue(/*Generic(KeyBinder, */analogThreshold_, 0.05f)  .description("Threshold for analog axes until which the state is 0.");
    237     SetConfigValue(/*Generic(KeyBinder, */mouseSensitivity_, 1.0f)  .description("Mouse sensitivity.");
    238     SetConfigValue(/*Generic(KeyBinder, */bDeriveMouseInput_, false).description("Whether or not to derive moues movement for the absolute value.");
    239     SetConfigValue(/*Generic(KeyBinder, */derivePeriod_, 0.05f).description("Accuracy of the mouse input deriver. The higher the more precise, but laggier.");
    240     SetConfigValue(/*Generic(KeyBinder, */mouseSensitivityDerived_, 1.0f).description("Mouse sensitivity if mouse input is derived.");
    241     SetConfigValue(/*Generic(KeyBinder, */bClipMouse_, true).description("Whether or not to clip absolute value of mouse in non derive mode.");
     236    SetConfigValue(analogThreshold_, 0.05f)  .description("Threshold for analog axes until which the state is 0.");
     237    SetConfigValue(mouseSensitivity_, 1.0f)  .description("Mouse sensitivity.");
     238    SetConfigValue(bDeriveMouseInput_, false).description("Whether or not to derive moues movement for the absolute value.");
     239    SetConfigValue(derivePeriod_, 0.05f).description("Accuracy of the mouse input deriver. The higher the more precise, but laggier.");
     240    SetConfigValue(mouseSensitivityDerived_, 1.0f).description("Mouse sensitivity if mouse input is derived.");
     241    SetConfigValue(bClipMouse_, true).description("Whether or not to clip absolute value of mouse in non derive mode.");
    242242
    243243    float oldThresh = buttonThreshold_;
    244     SetConfigValue(/*Generic(KeyBinder, */buttonThreshold_, 0.80f).description("Threshold for analog axes until which the button is not pressed.");
     244    SetConfigValue(buttonThreshold_, 0.80f).description("Threshold for analog axes until which the button is not pressed.");
    245245    if (oldThresh != buttonThreshold_)
    246246      for (unsigned int i = 0; i < nHalfAxes_s; i++)
  • code/branches/core3/src/orxonox/objects/ParticleProjectile.cc

    r1596 r1597  
    6767    }
    6868
    69     void ParticleProjectile::speedChanged()
    70     {
    71         Projectile::speed_s = this->speed_;
    72         if (this->owner_)
    73             this->setVelocity(this->owner_->getInitialDir() * this->speed_);
    74     }
    75 
    7669    void ParticleProjectile::changedVisibility()
    7770    {
  • code/branches/core3/src/orxonox/objects/ParticleProjectile.h

    r1596 r1597  
    4545            virtual void changedVisibility();
    4646            void setConfigValues();
    47             void speedChanged();
    4847
    4948        private:
Note: See TracChangeset for help on using the changeset viewer.