DirectX SDK |
The DIPROPLONG type is used to store property information to be set on or retrieved from the input device by using the DirectInputDevice.SetProperty and DirectInputDevice.GetProperty methods, where the property is a single value.
Type DIPROPLONG lData As Long lHow As Long lObj As Long lSize As Long End Type
If lObj is DIPROP_AXISMODE or DIPROP_BUFFERSIZE, lHow should be DIPH_DEVICE, because these properties cannot be set for an individual object.
If the lHow member is DIPH_BYID, this member must be the identifier for the object whose property setting is to be set or retrieved. This value can be retrieved for the object by using the DirectInputDeviceObjectInstance.GetType method.
If the lHow member is DIPH_BYOFFSET, this member must be a data format offset for the object whose property setting is to be set or retrieved. This value can be obtained by using the DirectInputDeviceObjectInstance.GetOfs method.
If lHow is DIPH_DEVICE, this value should be 0.
All members must be initialized with the proper values before the type is passed to the SetProperty method. All members except lData must be initialized with the proper values before the type is passed to GetProperty.