[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Key detection and redirection programming



From: Dinesh Nadarajah <dindin2k@yahoo.com>

>Dear Fellow developers:

>I have a problem involving keyboard key detection,
>processing and redirection. Here's what I am trying to
>do:

>1. I would like to intercept all keyboard inputs
>before any applications/terminals receive it.

>2. The program that intercepts the key code will
>process the keys and output a different key to the
>application in focus.

>3. I would like it to be a application/process that
>does this so that I can quit the application and
>return to normal keyboard usage.

Isn't that what kdb does.

You can setup your keymap to translate the keycodes to characters or
strings and change between the normal and the changed one at any time.
Write a small script that load the changed one upon start and the old
one when stopped.

May the Source be with you.
                        Goswin



Reply to: