Welcome to
www.tdxlibrary.org
Home of the
the TDx_Library...
"RAD DirectX"
for
C++ Builder
...
|
TDx_Input_Library v2.00 Component Reference
|
|
[ TDx_Input_Library::TDICondition ]
[ next: TDIConstantForce ]
class TDICondition : public TComponent
class PACKAGE TDICondition : public TComponent
class type : MultiWrapper
TDICONDITION
[ component ]
- Description
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
- Methods
- Events
- SeeAlso
- Top
If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.
|
|