Changeset 2662 for code/trunk/src/core/input/InputManager.h
- Timestamp:
- Feb 14, 2009, 10:17:35 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/core/input/InputManager.h
r2102 r2662 71 71 struct JoyStickCalibration 72 72 { 73 int zeroStates[24];73 int middleValue[24]; 74 74 float positiveCoeff[24]; 75 75 float negativeCoeff[24]; … … 136 136 public: // variables 137 137 static EmptyHandler EMPTY_HANDLER; 138 static const unsigned int sliderAxes = 8; 138 139 139 140 private: // functions … … 145 146 void _initialiseMouse(); 146 147 void _initialiseJoySticks(); 147 void _configureNumberOfJoySticks(); 148 void _configureJoySticks(); 149 150 void _loadCalibration(); 151 void _startCalibration(); 152 void _completeCalibration(); 153 void _evaluateCalibration(); 148 154 149 155 void _destroyKeyboard(); … … 154 160 155 161 void _reload(bool joyStickSupport); 156 157 void _completeCalibration();158 162 159 163 void _fireAxis(unsigned int iJoyStick, int axis, int value); … … 178 182 179 183 void setConfigValues(); 184 void _calibrationFileCallback(); 180 185 181 186 private: // variables … … 185 190 std::vector<OIS::JoyStick*> joySticks_; //!< OIS joy sticks 186 191 unsigned int joySticksSize_; 192 std::vector<std::string> joyStickIDs_; //!< Execution unique identification strings for the joy sticks 187 193 unsigned int devicesNum_; 188 194 size_t windowHnd_; //!< Render window handle … … 192 198 SimpleInputState* stateEmpty_; 193 199 ExtendedInputState* stateMaster_; //!< Always active master input state 194 KeyDetector* keyDetector_; //!< KeyDetector instance200 KeyDetector* keyDetector_; //!< KeyDetector instance 195 201 InputBuffer* calibratorCallbackBuffer_; 196 202 … … 207 213 208 214 // joystick calibration 209 //std::vector<int> marginalsMaxConfig_; 210 //std::vector<int> marginalsMinConfig_; 211 int marginalsMax_[24]; 212 int marginalsMin_[24]; 213 bool bCalibrated_; 214 bool bCalibrating_; 215 std::vector<std::vector<int> > joyStickMinValues_; 216 std::vector<std::vector<int> > joyStickMaxValues_; 217 std::vector<std::vector<int> > joyStickMiddleValues_; 218 std::vector<ConfigValueContainer*> calibrationConfigValueContainers_; 219 std::vector<JoyStickCalibration> joyStickCalibrations_; 215 220 216 221 unsigned int keyboardModifiers_; //!< Bit mask representing keyboard modifiers. 217 222 std::vector<POVStates> povStates_; //!< Keeps track of the joy stick POV states. 218 223 std::vector<SliderStates> sliderStates_; //!< Keeps track of the possibly two slider axes. 219 std::vector<JoyStickCalibration> joySticksCalibration_;220 224 221 225 std::vector<Key> keysDown_; … … 223 227 std::vector<std::vector<JoyStickButtonCode::ByEnum> > joyStickButtonsDown_; 224 228 225 static std::string bindingCommmandString_s; 229 // ConfigValues 230 std::string calibrationFilename_; //!< Joy stick calibration ini filename 231 226 232 static InputManager* singletonRef_s; 227 233 };
Note: See TracChangeset
for help on using the changeset viewer.