Changeset 1597 for code/branches/core3
- Timestamp:
- Jun 12, 2008, 11:02:40 PM (17 years ago)
- Location:
- code/branches/core3/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/core/input/KeyBinder.cc
r1596 r1597 234 234 void KeyBinder::setConfigValues() 235 235 { 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."); 242 242 243 243 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."); 245 245 if (oldThresh != buttonThreshold_) 246 246 for (unsigned int i = 0; i < nHalfAxes_s; i++) -
code/branches/core3/src/orxonox/objects/ParticleProjectile.cc
r1596 r1597 67 67 } 68 68 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 76 69 void ParticleProjectile::changedVisibility() 77 70 { -
code/branches/core3/src/orxonox/objects/ParticleProjectile.h
r1596 r1597 45 45 virtual void changedVisibility(); 46 46 void setConfigValues(); 47 void speedChanged();48 47 49 48 private:
Note: See TracChangeset
for help on using the changeset viewer.