The touch screen driver reads input from touch screen hardware and converts it to touch events that are sent to the input system. The driver is also responsible for converting uncalibrated coordinates to calibrated coordinates that take into account any hardware anomalies, such as skew or nonlinear sequences.
The driver must submit points while the user"s finger or stylus is touching the touch screen. When the user"s finger or stylus is removed from the screen, the driver must submit at least one final event indicating that the user"s finger or stylus tip was removed. The calibrated coordinates must be reported to the nearest one-quarter of a pixel.
The following steps detail the basic algorithm for using the touch screen:
Call TouchPanelEnable to start the screen sampling.
Call TouchPanelGetDeviceCaps to request the number of sampling points.
For every calibration point, perform the following steps:
Call TouchPanelGetDeviceCaps to get a calibration coordinate.
Draw
游客
非常好 2009-11-22