如何在.Net中使用触控板滚动
我的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果只是您的机器,那么最简单的方法是编辑 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/
联想驱动程序无法按您希望的方式工作。 有一个解决方法,发布在这里: 链接,其中涉及欺骗鼠标驱动程序以识别您想要滚动消息。
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.
一般来说,触控板上的滚动操作只是将与鼠标上的滚轮相同的信号发送到 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.