Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 961
Joel in Gö Avatar asked Oct 26 '22 06:10

Joel in Gö


2 Answers

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/

like image 179
Ivan Ičin Avatar answered Nov 15 '22 07:11

Ivan Ičin


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.

like image 42
EricLaw Avatar answered Nov 15 '22 07:11

EricLaw