Re: cell-phone like keyboard driver anywhere?

Oskar Schirmer (os@emlix.com)
Fri, 23 Aug 2002 09:38:12 +0200


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/