Platform SDK: DirectX |
The DirectInputDevice.SetProperty method sets properties that define the device behavior.
object.SetProperty( _ guid As String, _ propertyInfo As Any)
This setting applies to the entire device, so the lHow member of the DIPROPLONG type must be set to DIPH_DEVICE.
This setting applies to the entire device, so the lHow member of the associated DIPROPLONG type must be set to DIPH_DEVICE.
Setting the calibration mode for the entire device is equivalent to setting it for each axis individually.
The lData member of the DIPROPLONG type may be one of the following values:
DIPROPCALIBRATIONMODE_COOKED: DirectInput should return data after applying calibration information. This is the default mode.
DIPROPCALIBRATIONMODE_RAW: DirectInput should return raw, uncalibrated data. This mode is typically used only by Control Panel–type applications.
Note that setting a device into raw mode causes the dead zone, saturation, and range settings to be ignored.
This setting can be applied to either the entire device or to a specific axis.
For some devices, this is a read-only property.
You cannot set a reverse range; lMax must be greater than lMin.
This setting can be applied to either the entire device or to a specific axis.
If the method fails, an error is raised and Err.Number may be one of the following error codes:
DIERR_INVALIDPARAM |
DIERR_OBJECTNOTFOUND |
DIERR_UNSUPPORTED |
The buffer size determines the amount of data that the buffer can hold between calls to the DirectInputDevice.GetDeviceData method before data is lost. This value may be set to 0 to indicate that the application will not be reading buffered data from the device. If the buffer size in the lData member of the DIPROPLONG type is too large to be supported by the device, the largest possible buffer size is set. To determine whether the requested buffer size was set, retrieve the buffer-size property and compare the result with the value you previously attempted to set.