lkml.org 
[lkml]   [2003]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: keyboard - was: Re: Linux 2.6.0-test4
Chris Heath wrote:
> 1. I assume it is OK to defer processing the code e0 until the following
> byte arrives. Are there any keyboards out there with e0 in the keyboard
> ID? This could break the atkbd probe for such keyboards. (The
> alternative would be to pass the repeated key releases through to atkbd,
> and let that layer remove the duplicates.)
>
> 2. The event that appears between two repeated key releases is always a
> key release and not a key press.
>
> 3. There will only be at most one key event in between two repeated key
> releases.

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.

-- Jamie
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:7.135 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site