Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 13, 2009, 8:54:43 PM (15 years ago)
Author:
rgrieder
Message:

Added and adjusted documentation for the devices.
Also removed one last ugliness where the InputManager was called from within a device (which should not even know about the InputManager).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core4/src/core/input/JoyStick.h

    r3285 r3286  
    3838namespace orxonox
    3939{
     40    //! Template parameter collection for the base class
    4041    struct JoyStickTraits
    4142    {
     
    6667    public:
    6768        //! Assigns a generated ID string and loads the calibration (if present)
    68         JoyStick(unsigned int id);
     69        JoyStick(unsigned int id, OIS::InputManager* oisInputManager);
    6970        ~JoyStick() { }
    7071        void setConfigValues();
    7172
    72         //! Returns the generated (from the number of knobs and the device name) ID string
     73        //! Returns the ID string generated from the number of knobs and the device name
    7374        const std::string& getIDString() const { return this->idString_; }
    7475
     
    99100        bool sliderMoved   (const OIS::JoyStickEvent &arg, int id);
    100101        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!)
    102103        bool vector3Moved  (const OIS::JoyStickEvent &arg, int id) { return true; }
    103104
     105        //! Returns the class name as string
    104106        static std::string getClassNameImpl() { return "JoyStick"; }
    105107
     
    120122        std::string calibrationFilename_;     //!< Joy stick calibration ini filename
    121123
     124        //! Contains a list of all ID strings to avoid duplicates
     125        static std::vector<std::string> idStrings_s;
     126
    122127        //!< Maximum number of slider axes
    123128        static const unsigned int sliderAxes_s = 8;
Note: See TracChangeset for help on using the changeset viewer.