Re: [PATCH 9/44] Support for scroll wheel on Office keyboards

From: Vojtech Pavlik
Date: Tue Mar 30 2004 - 13:56:59 EST


On Sat, Mar 27, 2004 at 08:55:35PM +0100, Andries Brouwer wrote:

> On Tue, Mar 16, 2004 at 03:19:36PM +0100, Vojtech Pavlik wrote:
>
> > input: Add support for scroll wheel on MS Office and similar keyboards.
>
> > +static unsigned char atkbd_scroll_keys[5][2] = {
> > + { ATKBD_SCR_1, 0x45 },
> > + { ATKBD_SCR_2, 0x29 },
> > + { ATKBD_SCR_4, 0x36 },
> > + { ATKBD_SCR_8, 0x27 },
> > + { ATKBD_SCR_CLICK, 0x60 },
> > +};
>
> Hi Vojtech,
>
> Can you tell me what keyboard model uses these codes?
> (I have different codes for the scroll wheel on certain MS Office
> keyboards. See also somewhere below
> http://www.win.tue.nl/~aeb/linux/kbd/scancodes-5.html#ss5.4 )

Hmm, I'll re-check it, but I believe I based my original design on your
description. It was tested on a Samsung keyboard IIRC.

> Apart from this concrete question - the number of keyboards and
> mice is very large and growing by the day. I think it is hopeless
> to try and teach the kernel about all details of each of them.
> I think we should try to go for a keyboard/mouse definition file
> maintained in user space and fed to the kernel.

That's my plan, too.

--
Vojtech Pavlik
SuSE Labs, SuSE CR
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/