触摸板的绝对触摸坐标
是否可以直接从阿尔卑斯触摸板读取输入? 我正在尝试将我的触摸板变成一个便宜的绘图板,因此我需要读取触摸板相对于物理触摸板的原始未处理的 x 和 y 坐标。 因此,如果我触摸触摸板的左下角,它应该对应于 (0,0) 等。
顺便说一下,我正在尝试在 Windows 上执行此操作。
我已经可以使用 Synaptics 触摸板做到这一点,但这只是因为 Synaptics 有一个很好的 SDK,可以让我完全控制设备。 我在阿尔卑斯山找不到类似的东西。 有没有办法使用 windows api 或 directinput 或其他什么来做到这一点?
Is it possible to read input directly from a Alps touchpad? I am trying to turn my touchpad into a cheap drawing tablet so I need to read the raw unprocessed x and y coordinates of where it was touched relative to the physical touchpad. So if I touch the bottom left corner of the touchpad, it should correspond to (0,0) etc.
I am trying to do this with Windows by the way.
I can already do this with a Synaptics touchpad, but that's only because Synaptics has a nice SDK that gave me full control of the device. I couldn't find a similar thing for Alps. Is there anyway to do this using the windows api or directinput or whatever?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
抱歉,但 Alps 驱动程序确实很有限,它甚至不给您关闭它的方法(有时很烦人!)除非您对附带的 DLL 进行逆向工程(困难)或编写过滤器驱动程序直接捕获输入(甚至更难),如果您确实想走这条路,我建议您使用 Synaptics 设备。
除此之外,还可以获取已处理的 XY 坐标 - this< /a> 是 C# 中的示例。 首先尝试一下,这很简单,也许会足够精确。
或者只是购买一个绘图板,它可能会更便宜,具体取决于您可以花多少时间尝试让您的(小得多的)触摸板做同样的事情,但不是很好。
Sorry but the Alps driver is really limited, it doesn't even give you a way to turn it off (so annoying sometimes!) Unless you are into reverse-engineering the DLLs that ship with it (hard) or writing a filter driver to capture the input directly (even harder) I would suggest just using a Synaptics device if you really want to go that route.
Apart from that would to be to grab the processed XY coordinates - this is an example in C#. Try that first, it is quite easy and maybe it will be precise enough.
Or just buy a drawing tablet, it could be cheaper depending on the time you could spend trying to make your (much smaller) touchpad do kinda the same thing but not very well.