On Mon, Dec 04, 2000 at 08:41:41PM +0100, Andreas Beck wrote:
> > Why GII needs both label and sym informations?
> > What's exactly the differences between them?
>
> The label is what is printed on the key. That is, it is kind of an
> abstracted scancode. The symbol is what the key is supposed to produce,
> given the current modifier setup.
"is supposed to": isn't it a libgii issue rather than an input-driver one?
This was the last remark in my post, why should the input-driver take care
of the status of the modifiers to return the symbol? At the input-driver
level, I would have imagined something really straighforward
(like for games) and that libgii would do the label --> symbol
conversion depending on the keyboard layout (French, UK, US...).
>
> The reason for this division is that there are two kinds of applications:
>
> Those that expect textual input from the keyboard (like when entering data
> into a form), These will want "cooked" events that say what Symbols the
> User is entering on the keyboard to just add those to the string they want
> to store.
Isn't it the libgii job?
>
> And those that expect key pressed/released info (like games). Those would
> get confused by the above info, as it might depend on the modifier state.
> You'd have to tell the game to strafe left on , and on ; as the ; is on
> Shift+, on a german keyboard.
Nicholas
--
[EMAIL PROTECTED]
Alc�ve - Open Source Software Engineer - http://www.alcove.fr