触摸板的绝对触摸坐标

发布于 2024-08-02 00:02:43 字数 302 浏览 6 评论 0原文

是否可以直接从阿尔卑斯触摸板读取输入? 我正在尝试将我的触摸板变成一个便宜的绘图板,因此我需要读取触摸板相对于物理触摸板的原始未处理的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

开始看清了 2024-08-09 00:02:43

抱歉,但 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文