Changeset 1747 for code/trunk/src/core/input
- Timestamp:
- Sep 9, 2008, 4:25:52 AM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core3 (added) merged: 1573-1574,1583-1586,1591-1594,1596-1597,1603,1606-1607,1610-1611,1655,1658,1676-1679,1681-1685,1687,1716-1723,1725-1729,1736
- Property svn:mergeinfo changed
-
code/trunk/src/core/input/Button.cc
r1535 r1747 36 36 #include "util/SubString.h" 37 37 #include "util/String.h" 38 #include " core/Debug.h"38 #include "util/Debug.h" 39 39 #include "core/ConsoleCommand.h" 40 40 #include "core/CommandEvaluation.h" -
code/trunk/src/core/input/InputManager.cc
r1735 r1747 39 39 #include "core/CoreIncludes.h" 40 40 #include "core/ConfigValueIncludes.h" 41 #include "core/Debug.h"42 41 #include "core/CommandExecutor.h" 43 42 #include "core/ConsoleCommand.h" 44 43 #include "core/Shell.h" // hack! 44 #include "util/Debug.h" 45 45 46 46 #include "InputBuffer.h" … … 321 321 if (joySticksSize_) 322 322 { 323 std::vector< MultiTypeMath> coeffPos;324 std::vector< MultiTypeMath> coeffNeg;325 std::vector< MultiTypeMath> zero;323 std::vector<double> coeffPos; 324 std::vector<double> coeffNeg; 325 std::vector<int> zero; 326 326 coeffPos.resize(24); 327 327 coeffNeg.resize(24); … … 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/trunk/src/core/input/KeyBinder.cc
r1567 r1747 36 36 #include <string> 37 37 #include "util/Convert.h" 38 #include " core/Debug.h"38 #include "util/Debug.h" 39 39 #include "core/ConfigValueIncludes.h" 40 40 #include "core/CoreIncludes.h" … … 216 216 if (!infile) 217 217 { 218 ConfigFileManager::get Singleton()->setFile(CFT_Keybindings, "def_keybindings.ini");219 ConfigFileManager::get Singleton()->save(CFT_Keybindings, "keybindings.ini");218 ConfigFileManager::getInstance()->setFile(CFT_Keybindings, "def_keybindings.ini"); 219 ConfigFileManager::getInstance()->save(CFT_Keybindings, "keybindings.ini"); 220 220 } 221 221 else 222 222 infile.close(); 223 ConfigFileManager::get Singleton()->setFile(CFT_Keybindings, "keybindings.ini");223 ConfigFileManager::getInstance()->setFile(CFT_Keybindings, "keybindings.ini"); 224 224 225 225 // parse key bindings … … 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++) … … 268 268 if (!cont) 269 269 { 270 cont = new ConfigValueContainer(CFT_Keybindings, ClassIdentifier<KeyBinder>::getIdentifier(), button.name_, "" );270 cont = new ConfigValueContainer(CFT_Keybindings, ClassIdentifier<KeyBinder>::getIdentifier(), button.name_, "", button.name_); 271 271 ClassIdentifier<KeyBinder>::getIdentifier()->addConfigValueContainer(button.name_, cont); 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 -
code/trunk/src/core/input/KeyDetector.cc
r1535 r1747 33 33 34 34 #include "KeyDetector.h" 35 #include " core/Debug.h"35 #include "util/Debug.h" 36 36 #include "core/CoreIncludes.h" 37 37 #include "core/CommandExecutor.h"
Note: See TracChangeset
for help on using the changeset viewer.