Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 31 Jan 2002 18:06:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 31 Jan 2002 18:05:57 -0500 Received: from www.transvirtual.com ([206.14.214.140]:51985 "EHLO www.transvirtual.com") by vger.kernel.org with ESMTP id ; Thu, 31 Jan 2002 18:05:46 -0500 Date: Thu, 31 Jan 2002 15:05:03 -0800 (PST) From: James Simmons To: Roman Zippel cc: linux-m68k@lists.linux-m68k.org, Linux Kernel Mailing List Subject: Re: [PATCH] amiga input api drivers In-Reply-To: <3C59BC36.14267AE7@linux-m68k.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > > + printk(amikbd_messages[scancode]); /* scancodes >= 0x78 are error codes */ > > Damn, Geert was faster with this. :) Fixed. > > + for (i = 0; i < 0x78; i++) > > + if (amikbd_keycode[i]) > > + set_bit(amikbd_keycode[i], amikbd_dev.keybit); > > Do I understand it correctly, that amikbd_keycode[i] must have non zero > value for a valid key? If yes, something must be wrong here: Yes. amikbd_keycode is a map from scancode values to event key values. Now > > +static unsigned char amikbd_keycode[0x78] = { > > + 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 43, 0, 82, > > 0 is a valid keycode on the Amiga, it should be KEY_GRAVE. Okay so it should be: static unsigned char amikbd_keycode[0x78] = { 41, 2, 3, 4, 5, ... If amikbd_keycode[0] is set 41 then set_bit(amikbd_keycode[i], amikbd_dev.keybit); will be called in the above code. - 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/