JDD_SETCALIBRATION

The JDD_SETCALIBRATION message requests the driver to set calibration information. The driver uses the calibration values to map the physical device coordinates to the logical coordinate range established by the driver.

Parameters

LPARAM lParam1
Specifies a pointer to a JOYCALIBRATE structure containing the new calibration values to adopt.
LPARAM lParam2
Specifies a pointer to a JOYCALIBRATE structure. The driver should fill this structure with the existing calibration values.

Return Value

JDD_SETCALIBRATION returns MMSYSERR_NOERROR.

Comments

The calibration settings consist of base and delta values for each coordinate. The base value represents the lowest logical value the driver returns; the delta value is the multiplier to use when converting the actual value returned by the device to a logical value appropriate for the established value range.