Search code examples
.netscrollinput-devicestrackpad

How to use trackpad scrolling in .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).


Solution

  • 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.