[Y-devel] Key mappings
Dmitry Platonov shadowjack at mail.ru
Thu Feb 26 18:03:32 GMT 2004
On Thu, Feb 26, 2004 at 11:01:42AM +0200, Alexey Boyko wrote:
>
> > 2) the mapping from modifier + key -> character is also device dependent
> > (in the uk, shift+2 is ", in the us, it is @).
>
> ;) On russian keyboards in latin mode shift+2 is @, in cyrillic mode it is "
>
> > LoadModule "driver/input/evdev" keymap=gb
> > Any thoughts?
>
> My proposal is split input module into physical layer module, which convert
> physical kycodes into uniform keycodes, and logical layer module, which
> convert uniform keycodes into characters.
>
> Physical module depends from hardware on which it working on.
> Logical module process keymapping for different languages. For simple
> keymapping, where one key - one character it can be universal. For complex
> input languages it can be other. Or it can more powerful, and process all
> languages.
>
> There is one problem for complex languages: each widget, which take input,
> must store list of typed keys for determining which character is entered.
> (character is entered by several keystrokes), because input focus may change
> between characters.
I think there must be two types of events: from physical layer (KB_ESC, KB_S, KB_F1, etc.) for games, controls, shortcuts (one per keypress, keyrelease and keyrepeat) and from logical layer (traslated unicode characters), allowing complex input methods.
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved