Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 22, 2009, 11:16:34 PM (15 years ago)
Author:
rgrieder
Message:

Updated OIS library (still 1.2, but CVS version).
There have been some little fixes and support for force feedback on Linux (but this doesn't concern us for now…)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/resource2/src/ois/OISForceFeedback.h

    r1505 r5668  
    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.