35 class ConditionalEffect;
66 static const char* getForceTypeName(
EForce eValue);
88 static const char* getEffectTypeName(
EType eValue);
104 static const char* getDirectionName(
EDirection eValue);
116 static const unsigned int OIS_INFINITE = 0xFFFFFFFF;
145 void setNumAxes(
short nAxes);
151 short getNumAxes()
const;
184 Envelope() : attackLength(0), attackLevel(0), fadeLength(0), fadeLevel(0) {}
185 #if defined(OIS_MSVC_COMPILER) 186 #pragma warning (push) 187 #pragma warning (disable : 4800) 189 bool isUsed()
const {
return attackLength | attackLevel | fadeLength | fadeLevel; }
190 #if defined(OIS_MSVC_COMPILER) 191 #pragma warning (pop) 261 rightCoeff(0), leftCoeff(0), rightSaturation(0), leftSaturation(0),
262 deadband(0), center(0) {}
278 #endif //OIS_Effect_H Definition: OISEffect.h:76
EDirection
Direction of the Force.
Definition: OISEffect.h:91
Definition: OISEffect.h:78
Definition: OISEffect.h:81
EDirection direction
Definition: OISEffect.h:122
unsigned int attackLength
Definition: OISEffect.h:195
Envelope()
Definition: OISEffect.h:184
unsigned short magnitude
Definition: OISEffect.h:247
Definition: OISEffect.h:75
const EForce force
Definition: OISEffect.h:112
#define _OISExport
Definition: OISPrereqs.h:40
Definition: OISEffect.h:84
EType
Type of effect.
Definition: OISEffect.h:69
unsigned short rightSaturation
Definition: OISEffect.h:267
Definition: OISEffect.h:77
short trigger_button
Definition: OISEffect.h:125
unsigned short fadeLevel
Definition: OISEffect.h:206
Force Feedback is a relatively complex set of properties to upload to a device.
Definition: OISEffect.h:47
signed short level
Definition: OISEffect.h:219
unsigned int fadeLength
Definition: OISEffect.h:202
unsigned short leftSaturation
Definition: OISEffect.h:268
Base class of all effect property classes.
Definition: OISEffect.h:169
Use this class when dealing with Force type of Periodic.
Definition: OISEffect.h:240
unsigned short deadband
Definition: OISEffect.h:272
Definition: OISEffect.h:82
Definition: OISEffect.h:100
short axes
Definition: OISEffect.h:162
unsigned int replay_length
Definition: OISEffect.h:131
An optional envelope to be applied to the start/end of an effect.
Definition: OISEffect.h:181
const EType type
Definition: OISEffect.h:113
unsigned int trigger_interval
Definition: OISEffect.h:128
signed short startLevel
Definition: OISEffect.h:232
Definition: OISEffect.h:62
Definition: OISEffect.h:58
Use this class when dealing with Force type of Condional.
Definition: OISEffect.h:257
Definition: OISEffect.h:80
signed short center
Definition: OISEffect.h:275
Definition: OISEffect.h:79
unsigned short attackLevel
Definition: OISEffect.h:199
PeriodicEffect()
Definition: OISEffect.h:243
ConstantEffect()
Definition: OISEffect.h:216
signed short rightCoeff
Definition: OISEffect.h:264
Definition: OISEffect.h:93
EForce
Type of force.
Definition: OISEffect.h:55
Definition: OISEffect.h:61
Definition: OISEffect.h:99
Definition: OISEffect.h:95
Definition: OISEffect.h:94
Definition: OISEffect.h:74
unsigned int replay_delay
Definition: OISEffect.h:134
Use this class when dealing with Force type of Constant.
Definition: OISEffect.h:213
signed short endLevel
Definition: OISEffect.h:233
RampEffect()
Definition: OISEffect.h:229
Definition: OISEffect.h:96
unsigned short phase
Definition: OISEffect.h:249
Definition: OISEffect.h:73
Definition: OISEffect.h:97
ForceEffect * effect
Definition: OISEffect.h:161
int _handle
set internally.
Definition: OISEffect.h:159
bool isUsed() const
Definition: OISEffect.h:189
Definition: OISEffect.h:60
signed short offset
Definition: OISEffect.h:248
ConditionalEffect()
Definition: OISEffect.h:260
virtual ~ForceEffect()
Definition: OISEffect.h:172
Definition: OISEffect.h:59
Definition: OISEffect.h:98
Use this class when dealing with Force type of Ramp.
Definition: OISEffect.h:226
Definition: EventHelpers.h:31
signed short leftCoeff
Definition: OISEffect.h:265
Definition: OISEffect.h:83
unsigned int period
Definition: OISEffect.h:250