61 static const char* getForceTypeName(EForce eValue);
82 static const char* getEffectTypeName(EType eValue);
97 static const char* getDirectionName(EDirection eValue);
102 Effect(EForce ef, EType et);
109 static const unsigned int OIS_INFINITE = 0xFFFFFFFF;
138 void setNumAxes(
short nAxes);
144 short getNumAxes()
const;
183 attackLength(0), attackLevel(0), fadeLength(0), fadeLevel(0) {}
184 #if defined(OIS_MSVC_COMPILER) 185 #pragma warning(push) 186 #pragma warning(disable : 4800) 190 return attackLength | attackLevel | fadeLength | fadeLevel;
192 #if defined(OIS_MSVC_COMPILER) 233 startLevel(0), endLevel(0) {}
248 magnitude(0), offset(0), phase(0), period(0) {}
266 rightCoeff(0), leftCoeff(0), rightSaturation(0), leftSaturation(0),
267 deadband(0), center(0) {}
283 #endif //OIS_Effect_H Definition: OISEffect.h:70
EDirection
Direction of the Force.
Definition: OISEffect.h:85
Definition: OISEffect.h:72
Definition: OISEffect.h:75
EDirection direction
Definition: OISEffect.h:115
Envelope envelope
Definition: OISEffect.h:235
unsigned int attackLength
Definition: OISEffect.h:197
Envelope()
Definition: OISEffect.h:182
unsigned short magnitude
Definition: OISEffect.h:252
Definition: OISEffect.h:69
const EForce force
Definition: OISEffect.h:105
#define _OISExport
Definition: OISPrereqs.h:40
Definition: OISEffect.h:78
EType
Type of effect.
Definition: OISEffect.h:64
unsigned short rightSaturation
Definition: OISEffect.h:272
Definition: OISEffect.h:71
short trigger_button
Definition: OISEffect.h:118
unsigned short fadeLevel
Definition: OISEffect.h:208
Definition: OISEffect.h:47
signed short level
Definition: OISEffect.h:222
unsigned int fadeLength
Definition: OISEffect.h:204
unsigned short leftSaturation
Definition: OISEffect.h:273
Definition: OISEffect.h:167
Definition: OISEffect.h:244
unsigned short deadband
Definition: OISEffect.h:277
Definition: OISEffect.h:76
Definition: OISEffect.h:93
short axes
Definition: OISEffect.h:160
unsigned int replay_length
Definition: OISEffect.h:124
Definition: OISEffect.h:179
const EType type
Definition: OISEffect.h:106
unsigned int trigger_interval
Definition: OISEffect.h:121
signed short startLevel
Definition: OISEffect.h:236
Definition: OISEffect.h:57
Definition: OISEffect.h:53
Definition: OISEffect.h:262
Definition: OISEffect.h:74
signed short center
Definition: OISEffect.h:280
Definition: OISEffect.h:73
unsigned short attackLevel
Definition: OISEffect.h:201
PeriodicEffect()
Definition: OISEffect.h:247
ConstantEffect()
Definition: OISEffect.h:218
signed short rightCoeff
Definition: OISEffect.h:269
Definition: OISEffect.h:86
EForce
Type of force.
Definition: OISEffect.h:51
Definition: OISEffect.h:56
Definition: OISEffect.h:92
Definition: OISEffect.h:88
Definition: OISEffect.h:87
bool isUsed() const
Definition: OISEffect.h:188
Definition: OISEffect.h:68
unsigned int replay_delay
Definition: OISEffect.h:127
Definition: OISEffect.h:215
signed short endLevel
Definition: OISEffect.h:237
RampEffect()
Definition: OISEffect.h:232
Definition: OISEffect.h:89
unsigned short phase
Definition: OISEffect.h:254
Definition: OISEffect.h:67
Definition: OISEffect.h:90
ForceEffect * effect
Definition: OISEffect.h:159
int _handle
Definition: OISEffect.h:152
Definition: OISEffect.h:55
signed short offset
Definition: OISEffect.h:253
Envelope envelope
Definition: OISEffect.h:221
ConditionalEffect()
Definition: OISEffect.h:265
virtual ~ForceEffect()
Definition: OISEffect.h:170
Definition: OISEffect.h:54
Definition: OISEffect.h:91
Definition: OISEffect.h:229
Definition: OISEffect.h:28
Envelope envelope
Definition: OISEffect.h:250
signed short leftCoeff
Definition: OISEffect.h:270
Definition: OISEffect.h:77
unsigned int period
Definition: OISEffect.h:255