Microsoft Windows CE 3.0  

Sample Touch Screen Driver

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The touch screen driver reads input from the touch screen hardware and converts it to touch events that are fed into 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 nonlinearity. The sample code is in the \Platform\ODO\Drivers\Touchp directory of your Platform Builder installation.

The driver must submit points while the stylus is touching the touch screen. When the stylus is removed from the touch screen, the driver must submit at least one final event indicating that the stylus tip was removed. The calibrated coordinates must be reported to the nearest one-quarter of a pixel.

After calibration, the touch screen driver sends any pen samples generated for the touch screen to the callback function specified in the TouchPanelEnablefunction. The driver must pass calibrated points to the callback function.

The following list shows the DDI functions for the touch screen driver:

ErrorAnalysis TouchPanelPowerHandler
TouchPanelCalibrateAPoint TouchPanelReadCalibrationAbort
TouchPanelDisable TouchPanelReadCalibrationPoint
TouchPanelEnable TouchPanelSetCalibration
TouchPanelGetDeviceCaps TouchPanelSetMode

The following list shows the DDSI functions for the touch screen driver:

DdsiTouchPanelDisable
DdsiTouchPanelEnable
DdsiTouchPanelGetDeviceCaps
DdsiTouchPanelGetPoint
DdsiTouchPanelPowerHandler
DdsiTouchPanelSetMode


 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.