Get finger position on touchpad

扶醉桌前 提交于 2019-11-29 07:40:36

I know this isn't what you want to hear, but there is no all-inclusive way to do what you want.

Individual makes and models have their own way of exposing it. For example, I've done some work with Synaptic touchpads (fairly common) which expose a COM interface on Windows. That code won't work on any other touchpads.

You could find a few common ones and run different code based on which ones the system supports.

If its a windows app, handle the WM_MOUSEMOVE message , the hiword and loword of the lparam is the x and y coordinates respectively , in reference to client area coordinates.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!