Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 13, 2009, 6:41:58 PM (16 years ago)
Author:
rgrieder
Message:

Shoved some code around to reduce contents of 'global' InputPrereqs.h

File:
1 edited

Legend:

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

    r3274 r3285  
    3838namespace orxonox
    3939{
     40    struct JoyStickTraits
     41    {
     42        typedef JoyStick DeviceClass;
     43        typedef OIS::JoyStick OISDeviceClass;
     44        typedef JoyStickButtonCode::ByEnum ButtonType;
     45        typedef JoyStickButtonCode::ByEnum ButtonTypeParam;
     46        static const OIS::Type OISDeviceValue = OIS::OISJoyStick;
     47    };
     48
    4049    /**
    4150    @brief
     
    93102        bool vector3Moved  (const OIS::JoyStickEvent &arg, int id) { return true; }
    94103
     104        static std::string getClassNameImpl() { return "JoyStick"; }
     105
    95106        std::string idString_;                //!< ID string generated by the number of knobs and the device name
    96107        int povStates_[4];                    //!< Internal states for the POVs
Note: See TracChangeset for help on using the changeset viewer.