A joystick driver should use the DriverProc system messages for its installation and configuration routines. These messages are described in the documentation for the Microsoft Windows Software Development Kit.
The Joystick option of the Control Panel records the calibration settings in the [Joystick.Drv] section of the SYSTEM.INI file. After loading the joystick driver, MMSYSTEM reads the calibration information from SYSTEM.INI and sends it to the joystick driver with the JDD_SETCALIBRATION message.
The Joystick option program lists the calibration settings in the following format:
JoyCaln=xBase xDelta yBase yDelta zBase zDelta
Each number is a two-byte hexadecimal value. For example, a system with a single two-dimensional joystick might have the following entry:
[Joystick.Drv]
JoyCal0=0e64 0133 0c30 00f0 0000 0000
JoyCal1=0000 0001 0000 0001 0000 0001
If a joystick driver uses a custom calibration program, it should record the calibration information in this format.