如何捕捉触摸板输入 [英] How to capture touch pad input
问题描述
我到处寻找如何为笔记本电脑捕获触摸板输入,但似乎无法找到Chrome扩展程序/ JavaScript的任何内容。
问题:如何获取触摸板上的手指数量(未点击,正好朝下,可能会像使用鼠标一样移动),其对应的x,y坐标以及相应的向上事件一台笔记本电脑?
澄清:
$ b
$ b $为了开发这样的扩展,你需要编写
事件即可。
nofollow> chrome本地客户端与 Windows Touch Input 以实现目标。
I've looked everywhere for how to capture touch pad input for laptops but I can't seem to find anything for Chrome extensions/JavaScript.
Question: how can I capture the number of fingers down (not clicked, just down and potentially moving as you would with a mouse), their corresponding x,y coordinates, and their corresponding up events, for a touch pad on a laptop?
Clarifications:
- I'm not interested in detecting touch screen events. Just touch pad events.
- Can assume the touch pad lives on 3 year old or newer lap tops.
to develop such kind of extension, you need to write chrome native client with Windows Touch Input to make it happen.
这篇关于如何捕捉触摸板输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!