Re: keyboard - was: Re: Linux 2.6.0-test4
From: Andries Brouwer
Date: Thu Sep 04 2003 - 17:38:41 EST
On Thu, Sep 04, 2003 at 09:48:16PM +0100, Jamie Lokier wrote:
> Why so many complicated assumptions? Just maintain a bitmap if key
> up/down states (initialised to up), and if you receive a release event
> when the key is in the up state, ignore the event.
Ha! We maintain two such bitmaps. And they get out of sync too.
You talk too easily. "If you receive a release event".
But one does not receive release events, one receives bytes.
The interpretation of those bytes belongs to the keyboard driver.
But i8042.c needs to know whether scancodes are releases
in order to do its massaging of the scancodes before giving
them to the keyboard driver.
I regard i8042.c as fundamentally broken.
On the other hand, it almost works.
Andries
-
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/