lkml.org 
[lkml]   [2002]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: cell-phone like keyboard driver anywhere?
On Wed, Aug 21, 2002 at 09:32:36AM +0200, Holger Schurig wrote:
> 1 pause -> send keycode for character "a"
> 1 1 pause -> send keycode for character "b"
> 1 1 1 pause -> send keycode for character "c"
> 2 pause -> send keycode for character "d"

IMO this should not be done by the kernel, but by the application.

Reasons:
- actually, there is no key "a" etc that is pressed, but "1" etc.
- you loose ability to keep the display up to date according
to the pressed key sequence while composing characters, otherwise.
- it is easy for the application to check the timing of the
keys pressed and produce the desired characters instead [poll (2)].
- not all projects using the keyboard in question will need the
sequence-to-character conversion You describe. e.g. cash register.

gruesse(oskar)
--
oskar schirmer, emlix gmbh, http://www.emlix.com, mailto:os@emlix.com
fon +49 551 37000-37, fax -38, friedländer weg 7, 37085 göttingen, germany

emlix - your embedded linux partner
-
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:28    [W:0.116 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site