[Y-devel] Key mappings
Alexey Boyko smartly at gala.net
Thu Feb 26 11:21:43 GMT 2004
> > 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.
Yes. I think from input driver into widgets and applications must goes such
data:
{
flag keypress or keyrelease,
logical keycode,
associated character in wchar_t, or 0 if no character with this key
modifier state (shift,ctrl,alt,...)
}
When program processes hotkey, it analyzes keycode, when program typing text -
character.
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved