Re: cell-phone like keyboard driver anywhere?

From: Ingo Oeser (
Date: Thu Aug 22 2002 - 12:22:34 EST

Hi Holger,

On Wed, Aug 21, 2002 at 09:32:36AM +0200, Holger Schurig wrote:
> I have to write a keyboard driver for a cell-phone like keyboard. I'm just
> wondering if this has been done before.
> However, this file (as any other that I have seen) assumes that there are
> shift, ctrl, alt etc layers. But a cell-phone like keyboard operates
> differently, e.g.
> 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"

This can be done with counting repeat count of the last key until we
reach the pause (done with a timer, that gets modified after each
key pressed).

If the pause is reached or after each key press you compute the
keycode character that will be sent now.

Cell phones usally do an replacement of the character until you
do the pause or push a different key.

So you would need to play console games, too (changing between
insert and replace mode).

Hope this helps.


Ingo Oeser

Science is what we can tell a computer. Art is everything else. --- D.E.Knuth
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Fri Aug 23 2002 - 22:00:25 EST