Changeset 5695 for code/trunk/src/ois/OISForceFeedback.h
- Timestamp:
- Aug 30, 2009, 2:22:00 AM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/resource2 (added) merged: 3373-3374,5594,5597,5610-5611,5614,5624,5641,5644-5646,5650-5664,5667-5672,5682-5684,5688-5691,5694
- Property svn:mergeinfo changed
-
code/trunk/src/ois/OISForceFeedback.h
r1505 r5695 36 36 { 37 37 public: 38 ForceFeedback() {}38 ForceFeedback(); 39 39 virtual ~ForceFeedback() {} 40 40 … … 44 44 Individual effects have gain levels; however, this affects all 45 45 effects at once. 46 Note: If the device does not support master gain setting, nothing is done 46 47 @param level 47 48 A value between 0.0 and 1.0 represent the percentage of gain. 1.0 … … 56 57 the joystick back to center. DirectInput only has an on/off setting, 57 58 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 58 60 @param auto_on 59 61 true to turn auto centering on, false to turn off. … … 87 89 virtual short getFFAxesNumber() = 0; 88 90 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; 90 98 /** 91 99 @remarks … … 94 102 const SupportedEffectList& getSupportedEffects() const; 95 103 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 96 110 void _addEffectTypes( Effect::EForce force, Effect::EType type ); 111 void _setGainSupport( bool on ); 112 void _setAutoCenterSupport( bool on ); 97 113 98 114 protected: 99 115 SupportedEffectList mSupportedEffects; 116 bool mSetGainSupport; 117 bool mSetAutoCenterSupport; 100 118 }; 101 119 }
Note: See TracChangeset
for help on using the changeset viewer.