The following steps detail the basic algorithm that you, the driver developer, can use to sample and calibrate the screen with the touch screen driver:
1.Call the TouchPanelEnable function to start the screen sampling.
2.Call the TouchPanelGetDeviceCaps function to request the number of sampling points.
3.For every calibration point, perform the following steps:
a.Call TouchPanelGetDeviceCaps to get a calibration coordinate.
b.Draw a crosshair at the returned coordinate.
c.Call the TouchPanelReadCalibrationPoint function to get calibration data.
4.Call the TouchPanelSetCalibration function to calculate the calibration coefficients.