简体   繁体   English

在触摸板上获取手指位置

[英]Get finger position on touchpad

Is there any way to get the location that touch pad is touched? 有没有办法获得触摸板触摸的位置? also I need capture module that is able to return such 2D points array map that reports states of touchpad points (state means: is point touched/not touched ) by request. 我还需要能够返回这样的2D点阵列图的捕获模块,该阵列图通过请求报告触摸板点的状态(状态表示: 点触摸/未触摸 )。 No matter on what technology/language it is written 无论它是用什么技术/语言编写的

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. 例如, 我已经完成了一些使用Synaptic触摸板 (相当常见)的工作,它在Windows上公开了一个COM接口。 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. 您可以找到一些常见的,并根据系统支持的代码运行不同的代码。

如果它是一个Windows应用程序,处理WM_MOUSEMOVE消息,则lparam的hiword和loword分别是x和y坐标,参考客户区域坐标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM