locale: drop Virtual-Key as intermediate format for xkbfile
authorMads Kiilerich <mads@kiilerich.com>
Wed, 28 Mar 2012 23:12:48 +0000 (01:12 +0200)
committerMads Kiilerich <mads@kiilerich.com>
Wed, 28 Mar 2012 23:12:48 +0000 (01:12 +0200)
commitf799615c224dda5a49cb273aff83b0ffd7502fad
tree761703ea331e7d2086c6d758bfec1f69bf896508
parent3e4b43492507a360959e3a1b3c5cba2e03e6d05d
locale: drop Virtual-Key as intermediate format for xkbfile

There is no 1:1 mapping between Virtual-Key codes and the "scancodes" used in
the rdp protocol. Some examples are VK_RETURN and VK_DIVIDE and US keyboards
where two different physical keys with different "scancodes" in the protocol
map to the same Virtual-Key on the server. Another bad fit seems to be the
Japanese backslash key.

The rdp scancodes are apparently undocumented and different from everything
else. The best we can do is to reverse engineer the protocol values and give
them some descriptive names and try to figure out how they relate to the native
scancodes on the supported platforms.
include/freerdp/keyboard_scancode.h
libfreerdp-locale/keyboard_xkbfile.c