Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263827AbUC3Sxv (ORCPT ); Tue, 30 Mar 2004 13:53:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263829AbUC3Sxv (ORCPT ); Tue, 30 Mar 2004 13:53:51 -0500 Received: from twilight.ucw.cz ([81.30.235.3]:7040 "EHLO midnight.ucw.cz") by vger.kernel.org with ESMTP id S263827AbUC3Sxj (ORCPT ); Tue, 30 Mar 2004 13:53:39 -0500 Date: Tue, 30 Mar 2004 20:53:39 +0200 From: Vojtech Pavlik To: Andries Brouwer Cc: torvalds@osdl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 9/44] Support for scroll wheel on Office keyboards Message-ID: <20040330185339.GA319@ucw.cz> References: <1079446776784@twilight.ucw.cz> <10794467761141@twilight.ucw.cz> <20040327195535.GA11610@wsdw14.win.tue.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040327195535.GA11610@wsdw14.win.tue.nl> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1439 Lines: 40 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/