www.BCB-Tools.com
Home of
RAD DirectX
for
C++ Builder
...
...
Please Register
So we can
create more
the TDx_Library
the TDx9_Library
|
TDx_Input_Library v1.90 Component Reference
|
|
[ TDx_Input_Library::TDIObjectDataFormat ]
[ next: TDIPeriodic ]
[ prev: TDIMouseState2 ]
class TDIObjectDataFormat : public TComponent
class PACKAGE TDIObjectDataFormat : public TComponent
class type : MultiWrapper
TDIOBJECTDATAFORMAT
[ component ]
- Description
The TDIObjectDataFormat component wraps multiple DirectX DIOBJECTDATAFORMAT structures, which describes a device object's data format.
This component is used with the TDx_InputDevice::SetDataFormat() method to create the data format for a specialized device as part of the TDIDataFormat component defining the data format of a device's individual controls. Eg: the buttons, sliders, x-axis or y-axis of a joystick, etc.
In most cases the use of predefined data formats for mice, joysticks and keyboards make using this component unneccessary.
The data format must be set before a device can be acquired with TDx_InputDevice::Acquire() and used.
While the device is acquired, the data format cannot be changed but it should only be neccessary to set the data format once.
To setup this component, first set the TDIObjectDataFormat::ArraySize property, then set each property using array indexes, eg:
// create internal storage for 5 DIOBJECTDATAFORMAT structures
DIObjectDataFormat->ArraySize = 5;
// fill each array with appropriate data
for (int i=0;i<5;i++)
{
DIObjectDataFormat1->Flags[i] = DIDOI_ASPECTFORCE;
}
- Properties
- Methods
- Events
- SeeAlso
- Top
If you would like to submit additions or improvements to this page, click: [email protected].
|
|