Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 19, 2009, 1:13:43 AM (15 years ago)
Author:
rgrieder
Message:

Keybindings should now map to the correct joy stick by device name (like "WingMan Action Pad" or so).

File:
1 edited

Legend:

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

    r3286 r3306  
    7171        void setConfigValues();
    7272
    73         //! Returns the ID string generated from the number of knobs and the device name
    74         const std::string& getIDString() const { return this->idString_; }
     73        //! Returns the name generated from the number of knobs and the device name
     74        const std::string& getDeviceName() const { return this->deviceName_; }
    7575
    7676    private:
     
    106106        static std::string getClassNameImpl() { return "JoyStick"; }
    107107
    108         std::string idString_;                //!< ID string generated by the number of knobs and the device name
     108        std::string deviceName_;              //!< Name generated by the number of knobs and the device name
    109109        int povStates_[4];                    //!< Internal states for the POVs
    110110        int sliderStates_[4][2];              //!< Internal states for the Sliders (each slider has X and Y!)
     
    122122        std::string calibrationFilename_;     //!< Joy stick calibration ini filename
    123123
    124         //! Contains a list of all ID strings to avoid duplicates
    125         static std::vector<std::string> idStrings_s;
     124        //! Contains a list of all names to avoid duplicates
     125        static std::vector<std::string> deviceNames_s;
    126126
    127127        //!< Maximum number of slider axes
Note: See TracChangeset for help on using the changeset viewer.