Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 30, 2009, 2:22:00 AM (15 years ago)
Author:
rgrieder
Message:

Merged resource2 branch back to trunk.

IMPORTANT NOTE:
Upon this merge you need to specifically call your data directory "data_extern" when checking it out (when you don't provide a name, it will be just called 'trunk').
The new CMake variable is EXTERNAL_DATA_DIRECTORY. DATA_DIRECTORY now points to the one the source part of the repository.
UPDATE YOUR DATA DIRECTORY AS WELL!!!

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/ois/OISForceFeedback.h

    r1505 r5695  
    3636        {
    3737        public:
    38                 ForceFeedback() {}
     38                ForceFeedback();
    3939                virtual ~ForceFeedback() {}
    4040
     
    4444                        Individual effects have gain levels; however, this affects all
    4545                        effects at once.
     46                        Note: If the device does not support master gain setting, nothing is done
    4647                @param level
    4748                        A value between 0.0 and 1.0 represent the percentage of gain. 1.0
     
    5657                        the joystick back to center. DirectInput only has an on/off setting,
    5758                        whereas linux has levels.. Though, we go with DI's on/off mode only
     59                        Note: If the device does not support auto-centering, nothing is done
    5860                @param auto_on
    5961                        true to turn auto centering on, false to turn off.
     
    8789        virtual short getFFAxesNumber() = 0;
    8890
    89                 typedef std::map<Effect::EForce, Effect::EType> SupportedEffectList;
     91                /**
     92                @remarks
     93                        Get the current load (%, in [0, 100] of the FF device memory
     94                */
     95                virtual unsigned short getFFMemoryLoad() = 0;
     96
     97                typedef std::multimap<Effect::EForce, Effect::EType> SupportedEffectList;
    9098                /**
    9199                @remarks
     
    94102                const SupportedEffectList& getSupportedEffects() const;
    95103
     104                /**
     105                @remarks
     106                        Tell if a given force / effect type pair is supported
     107                */
     108                bool supportsEffect(Effect::EForce force, Effect::EType type) const;
     109
    96110                void _addEffectTypes( Effect::EForce force, Effect::EType type );
     111                void _setGainSupport( bool on );
     112                void _setAutoCenterSupport( bool on );
    97113
    98114        protected:
    99115                SupportedEffectList mSupportedEffects;
     116                bool mSetGainSupport;
     117                bool mSetAutoCenterSupport;
    100118        };
    101119}
Note: See TracChangeset for help on using the changeset viewer.