资料
  • 资料
  • 专题
WinCE下的触控屏驱动程序源代码(MS提供)
推荐星级:
时间:2019-12-23
大小:33.06KB
阅读数:135
上传用户:微风DS
查看他发布的资源
下载次数
0
所需E币
4
ebi
新用户注册即送 300 E币
更多E币赚取方法,请查看
close
资料介绍
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 a crosshair at the returned coordinate. Call TouchPanelReadCalibrationPoint to get calibration data. Call TouchPanelSetCalibration to calculate the calibration coefficients. After executing this sequence, any finger or stylus samples generated for the screen are passed to the callback function specified in TouchPanelEnable. The driver may pass either calibrated or uncalibrated points to the callback. If the driver has an efficient calibration algorithm, it can return calibrated points. However, if the calibration is computationally intensive, the driver may choose to return uncalibrated points, rather than perform extensive calculations in the high-priority driver thread. The lower priority thread processing points from the callback can then perform the calibration. You can calibrate your touch screen without the ENTER key. The GWES keyboard code opens HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\KEYBD and looks for a DWORD value called Status. This is a bit mask combining the KBDI_KEYBOARD_XXX values from %_WINCEROOT%\Public\Common\SDK\INC\Keybd.h. If it is not found, GWES assumes KBDI_KEYBOARD_PRESENT | KBDI_KEYBOARD_ENTER_ESC | KBDI_KEYBOARD_ALPHA_NUM. This registry access only occurs once, when the keyboard driver is loaded. This value is the basis for what you get when you call GetKeyboardStatus. GWES will add or subtract the KBDI_KEYBOARD_ENABLED bit based on EnableHardwareKeyboard calls. The KBDI_KEYBOARD_ENABLED bit is set when the keyboard driver is loaded. The UseEnterEsc behavior can be controlled by a registry key.The following table shows the touch screen driver functions.FunctionDescriptionDdsiTouchPanelAttachCalled when the MDD"s DLL entry point gets a DLL_PROCESS_ATTACH message.DdsiTouchPanelDetachCalled when the MDD"s DLL entry point gets a DLL_PROCESS_DETACH message.DdsiTouchPanelDisableDisables the touch screen device.DdsiTouchPanelEnableApplies power to the touch screen device and initializes it for operation.DdsiTouchPanelGetDeviceCapsQueries for capabilities of the touch screen device.DdsiTouchPanelGetPointReturns the most recently acquired point and its associated tip-state information.DdsiTouchPanelPowerHandlerIndicates to the driver that the system is entering or leaving the suspend state.DdsiTouchPanelSetModeSets information about the touch screen device.ErrorAnalysisProvides information on the accuracy of the touch screen calibration.TouchPanelCalibrateAPointConverts uncalibrated points to calibrated points.TouchPanelDisableDisables the touch screen.TouchPanelEnableEnables and re-enables the touch screen.TouchPanelGetDeviceCapsReturns information about the capabilities of the touch screen.TouchPanelPowerHandlerHandles power-state change notifications.TouchPanelReadCalibrationAbortAborts the currently active call to the TouchPanelCalibrateAPoint functionTouchPanelReadCalibrationPointInitiates the process of getting a calibration point.TouchPanelSetCalibrationInitializes calibration information in the vCalcParam global parameter.TouchPanelSetModeSets mode information for a touch screen device.……
版权说明:本资料由用户提供并上传,仅用于学习交流;若内容存在侵权,请进行举报,或 联系我们 删除。
相关评论 (下载后评价送E币 我要评论)
没有更多评论了
  • 可能感兴趣
  • 关注本资料的网友还下载了
  • 技术白皮书