Am 05.05.2010 um 12:14 schrieb ard:

On Wed, May 05, 2010 at 11:33:49AM +0200, Dr. H. Nikolaus Schaller wrote:
So I think adding the touchpad buttons to the touchpad driver doesn't
make sense. Would it be good to add it to the keyboard driver? Or to
patch/configure some mouse driver? E.g. the input/mouse/gpio_mouse.c
Hmmm, maybe that's a good idea. An event driver that's registered
as a mouse so that it's events are gathered in /dev/mice...
That shouldn't even be to hard...

I have looked a little deeper into the input/mouse/gpio_mouse.c and it looks pretty simple. One just has to configure the GPIO pins and their polarity. One caveat is that it requires to report mouse movements. But fortunately you can set the same GPIO pin for "up" and "down" so that the difference is 0. And in the very rare case that the GPIO pin changes between the two polling steps it will move the mouse pointer by just one unit. That is IMHO acceptable.

So I will experiment a little with this driver.

BR,
Nikolaus


_______________________________________________
Mipsbook-devel mailing list
Mipsbook-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/mipsbook-devel

Reply via email to