Partager via


Touch Input (Compact 7)

3/12/2014

The touch input module loads and initializes the touch proxy driver, calibrates the touch screen, and receives touch data from the driver.

The object file for this module is Tchui.lib, which is built from the source files in %_WINCEROOT%\Private\Winceos\Coreos\Gwe\Userin\Touch\. The following table describes some of these source files.

File name Description

userk.h

Header file for touch.cpp.

touch.cpp

Provides Touch_Initialize, which loads the touch proxy driver and looks up the exported entry points.

Provides calibration functions, including TouchCalibrate. TouchCalibrate initiates screen calibration when it is called by function PDDCalibrationThread (in TouchScreenPdd.cpp) which is called by PDD_Init. Also within touch.cpp is code to write and read calibration information to and from the registry.

Provides function TouchEventSend, which receives touch events from function DispatchTouchSampleSet (in userin.cpp) of the user input queue module, and passes the events to function GestureRecognizer::RecognizeTouch (in TouchGesture.cpp) of gesture core's recognizer interface module. Also provides MouseEventSend, which receives mouse events from functions UserInputThread and ProcessTouchEvent (in userin.cpp) of the user input queue module. It processes each event and sends a touch event to either an application message queue or a special message queue such as calibration.

See Also

Concepts

Gesture Recognition Architecture