Partager via


Initialize Touch Input (Compact 7)

3/12/2014

Function Touch_Initialize (in touch.cpp) initializes touch input. It calls LoadTouchDriver (in touch.cpp) to load the touch proxy driver DLL and to obtain pointers to the touch proxy driver functions. It obtains pointers for all entry points described in Touch Proxy Driver, except for TouchPanelDisable and TouchPanelRegisterCallback.

Touch_Initialize then calls TouchPanelEnableEx to provide the touch proxy driver a pointer to function UserInputQueue_PutTouchEventsExport (in userin.cpp). The proxy driver will call this function to provide touch contact data to gesture core.

Note

The caller of Touch_Initialize is function InitializeGweUser in %_WINCEROOT%\Private\Winceos\Coreos\Gwe\Winmgr\Winmgr\gweuserthunk.cpp. This function is not described in this guide.

Touch_Initialize also restores calibration or re-calibrates, as necessary.

See Also

Concepts

Touch Event Flow