Re: [gtk-vnc-devel] [PATCH][RFC] Support for ExtendedKeyEvent client message



Gerd Hoffmann wrote:
  Hi,

If it is true, that KEY_Q does not necessarily correspond to a 'Q' key press, then I fail to see how the Linux input layer codes are any more well defined the PS/2 scan codes.

I think they are when it comes to those fancy multimedia keyboards which
add certain keys for "play", "pause", "next track", "volume up" and so
on.  Linux has KEY_FOO defines for them.  For PS/2 those are not
standardized and thus differ from vendor to vendor as far I know.  At
least xorg comes with a bunch of different xkb keyboard definitions for
the different keyboards ...

Right, but recall, we're passing this up through to the PS/2 layer so it will just appear like the local keyboard is connected to the server.

One problem with passing Linux input codes is that we have no way to make the information we get from GDK to Linux keycodes. We're basically passing all the information we have (the symbolic value, and what GDK provides as the hardware keycode with some canonicalization).

What can we do in the client to convert to Linux input codes that we couldn't do in the server?

Regards,

Anthony Liguori

cheers,
  Gerd







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