Changeset 1596 for code/branches/core3/src/core/input
- Timestamp:
- Jun 12, 2008, 10:53:51 PM (17 years ago)
- Location:
- code/branches/core3/src/core/input
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/core/input/InputManager.cc
r1586 r1596 340 340 getIdentifier()->addConfigValueContainer("CoeffPos", cont); 341 341 } 342 cont->getValue(&coeffPos );342 cont->getValue(&coeffPos, this); 343 343 344 344 cont = getIdentifier()->getConfigValueContainer("CoeffNeg"); … … 348 348 getIdentifier()->addConfigValueContainer("CoeffNeg", cont); 349 349 } 350 cont->getValue(&coeffNeg );350 cont->getValue(&coeffNeg, this); 351 351 352 352 cont = getIdentifier()->getConfigValueContainer("Zero"); … … 356 356 getIdentifier()->addConfigValueContainer("Zero", cont); 357 357 } 358 cont->getValue(&zero );358 cont->getValue(&zero, this); 359 359 360 360 // copy values to our own variables -
code/branches/core3/src/core/input/KeyBinder.cc
r1586 r1596 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(/*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."); 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(/*Generic(KeyBinder, */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++) … … 272 272 } 273 273 std::string old = button.bindingString_; 274 cont->getValue(&button.bindingString_ );274 cont->getValue(&button.bindingString_, this); 275 275 276 276 // keybinder stuff
Note: See TracChangeset
for help on using the changeset viewer.