Changeset 3286 for code/branches/core4/src/core/input/JoyStick.h
- Timestamp:
- Jul 13, 2009, 8:54:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/core/input/JoyStick.h
r3285 r3286 38 38 namespace orxonox 39 39 { 40 //! Template parameter collection for the base class 40 41 struct JoyStickTraits 41 42 { … … 66 67 public: 67 68 //! Assigns a generated ID string and loads the calibration (if present) 68 JoyStick(unsigned int id );69 JoyStick(unsigned int id, OIS::InputManager* oisInputManager); 69 70 ~JoyStick() { } 70 71 void setConfigValues(); 71 72 72 //! Returns the generated (from the number of knobs and the device name) ID string73 //! Returns the ID string generated from the number of knobs and the device name 73 74 const std::string& getIDString() const { return this->idString_; } 74 75 … … 99 100 bool sliderMoved (const OIS::JoyStickEvent &arg, int id); 100 101 bool povMoved (const OIS::JoyStickEvent &arg, int id); 101 //! <OIS event handler (don't remove that because of OIS version issues!)102 //! OIS event handler (don't remove that because of OIS version issues!) 102 103 bool vector3Moved (const OIS::JoyStickEvent &arg, int id) { return true; } 103 104 105 //! Returns the class name as string 104 106 static std::string getClassNameImpl() { return "JoyStick"; } 105 107 … … 120 122 std::string calibrationFilename_; //!< Joy stick calibration ini filename 121 123 124 //! Contains a list of all ID strings to avoid duplicates 125 static std::vector<std::string> idStrings_s; 126 122 127 //!< Maximum number of slider axes 123 128 static const unsigned int sliderAxes_s = 8;
Note: See TracChangeset
for help on using the changeset viewer.