如何在.Net中使用触控板滚动

发布于 2024-07-13 21:22:40 字数 311 浏览 6 评论 0原文

我的 WinForms 应用程序使用鼠标滚轮,订阅 Control.MouseWheel 事件。 如何让它与其他输入设备的滚动方法配合使用,特别是在 T61 的 (Synaptics) 触控板上“手指沿边缘”滚动? 我假设我需要以某种方式将触控板消息连接到 Control.MouseWheel 事件,但我不知道从哪里开始...

编辑:这目前不起作用; 所以我的触控板显然没有发送 Control.MouseWheel 消息。

谢谢!

(我使用的是 C#,但这肯定是 .Net 通用的)。

My WinForms app uses the mouse wheel, subscribing to the Control.MouseWheel event. How can I get it to work with scrolling methods from other input devices, in particular "finger along the edge" scrolling on the (Synaptics) trackpad on my T61? I assume that I need to wire up the trackpad messages to the Control.MouseWheel event somehow, but I have no idea where to start...

EDIT: This is currently not working; so my trackpad is evidently not sending Control.MouseWheel messages.

Thanks!

(I am using C#, but this is surely .Net general).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

把回忆走一遍 2024-07-20 21:22:40

如果只是您的机器,那么最简单的方法是编辑 TP4table.dat 文件并在其中添加应用程序名称,如下所述: http://www.syaoran.net/blog/2010/01/how-to-enable-thinkpad-trackpoint-scrolling/

If it is just your machine, then easiest thing to do is to edit TP4table.dat file and add application name in it, as explained here: http://www.syaoran.net/blog/2010/01/how-to-enable-thinkpad-trackpoint-scrolling/

黯淡〆 2024-07-20 21:22:40

联想驱动程序无法按您希望的方式工作。 有一个解决方法,发布在这里: 链接,其中涉及欺骗鼠标驱动程序以识别您想要滚动消息。

The Lenovo drivers don't work the way that you'd hope. There's a workaround, posted here: Link which involves tricking the mouse driver into recognizing that you want scroll messages.

清音悠歌 2024-07-20 21:22:40

一般来说,触控板上的滚动操作只是将与鼠标上的滚轮相同的信号发送到 PC,因此您当前的实现应该可以工作。

In general, the scrolling action on a trackpad simply sends the same signals to the PC as the scroll wheel on a mouse so your current implementation should work.

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