mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Oeser <ingo.oeser@informatik.tu-chemnitz.de>
To: Holger Schurig <h.schurig@mn-logistik.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: cell-phone like keyboard driver anywhere?
Date: Thu, 22 Aug 2002 19:22:34 +0200	[thread overview]
Message-ID: <20020822192234.E4679@nightmaster.csn.tu-chemnitz.de> (raw)
In-Reply-To: <200208210932.36132.h.schurig@mn-logistik.de>; from h.schurig@mn-logistik.de on Wed, Aug 21, 2002 at 09:32:36AM +0200

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.

Regards

Ingo Oeser
-- 
Science is what we can tell a computer. Art is everything else. --- D.E.Knuth

  reply	other threads:[~2002-08-22 17:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-21  7:32 Holger Schurig
2002-08-22 17:22 ` Ingo Oeser [this message]
2002-08-23  7:38 ` Oskar Schirmer
2002-08-23  7:54   ` Holger Schurig
     [not found]     ` <20020823103151.A19858@flint.arm.linux.org.uk>
2002-08-23 10:05       ` Holger Schurig
2002-08-23 10:33         ` Russell King
2002-08-23 11:45           ` Holger Schurig
2002-08-23 12:35             ` Russell King
2002-08-23 14:21     ` Jan Harkes
2002-08-23 15:10       ` Holger Schurig
2002-08-23 15:34         ` Jan Harkes
2002-08-23 15:37         ` Thunder from the hill

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020822192234.E4679@nightmaster.csn.tu-chemnitz.de \
    --to=ingo.oeser@informatik.tu-chemnitz.de \
    --cc=h.schurig@mn-logistik.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®