[ TDx_Input_Library ]
[ next: TDIConstantForce ]
class TDICondition : public TComponent
class PACKAGE TDICondition : public TComponent
class type : MultiWrapper
If you would like to submit additions or improvements to this page, click: admin@bcb-tools.com.
DESCRIPTION
Top
Properties
Methods
Events
See Also
The TDICondition component wraps multiple DirectX DICONDITION structures, which contain type specific information for force feedback effects that have the DIEFT_CONDITION option set.
It is used to define 'Conditions', which are forces that are applied in response to the movement or position of a control device's input mechanisms.
There are four standard types of conditions - friction, damper, inertia and spring.
Use this component by setting TDIEffect::TypeSpecificParams to refer to either a single TDICondition component or one TDICondition component per axis associated with a condition.
To create a condition, use the TDx_InputDevice::CreateEffect() method and pass one of the following as the GUID parameter:
GUID_Spring
GUID_Damper
GUID_Inertia
GUID_Friction
The properties should be interpreted according to the type of condition the component represents.
To setup this component, first set the TDICondition::ArraySize property, then set each property using array indexes, eg:
// create internal storage for 5 DICONDITION structures
DICondition1->ArraySize = 5;
// fill each array with appropriate data
for (int i=0;i<5;i++)
/{
DICondition1->PositiveCoefficient[i] = 1;
DICondition1->NegativeCoefficient[i] = -1;
/}
PROPERTIES
Top
Properties
Methods
Events
See Also
ArraySize
DeadBand
ErrorValue
NegativeCoefficient
NegativeSaturation
Offset
PositiveCoefficient
PositiveSaturation
Size
SizeAll
METHODS
Top
Properties
Methods
Events
See Also
Clear
ClearAll
EVENTS
Top
Properties
Methods
Events
See Also
OnError
SEE ALSO
Top
Properties
Methods
Events
See Also
TDIEffectInfo
TDx_InputDevice::CreateEffect()
TDIEffect::TypeSpecificParams