Commit Graph

49 Commits

Author SHA1 Message Date
Mads Kiilerich
16478d8fad locale: update rdp scancodes according to Win CE "Translating Scan Codes to Virtual-Key Codes"
The values in @msdn{ms892480} seems to be what is used in TS_KEYBOARD_EVENT @msdn{cc240584}.

All the "XT Scan Code Translation Libraries" has been checked and integrated.
Only the Korean has been skipped. It is clearly something completely different
from everything else. The Japanese is just an extension of the US keyboard like
the others.
2012-03-29 01:25:49 +02:00
Mads Kiilerich
a9296e976d locale: add Japanese backslash key with rdp scancode 7D and X key name AE13
Correct values for the keyboard fields in Client Core Data is required too.
2012-03-29 01:12:48 +02:00
Mads Kiilerich
f799615c22 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.
2012-03-29 01:12:48 +02:00
Mads Kiilerich
7f399c6020 locale: #define known rdp scancode values
For now they are named after the VK code they mostly correspond to.
2012-03-29 01:12:48 +02:00
Mads Kiilerich
94e9405202 locale: make RDP_SCANCODE a simple value type that easily can be passed around 2012-03-29 01:12:35 +02:00
Mads Kiilerich
6c4b4dcbed fix building on X11 without XKBFILE 2012-03-29 01:10:57 +02:00
Mads Kiilerich
7f67338e2d locale: debug statements and indentation 2012-03-24 02:01:12 +01:00
Mads Kiilerich
0acd3d5a98 locale: reintroduce sun keyboard layouts and fix sun compilation
Untested.
2012-03-24 01:57:10 +01:00
Mads Kiilerich
1b52843f74 locale: plug some xkb / keymap leaks 2012-03-24 01:57:10 +01:00
Mads Kiilerich
b931891bed locale: don't fall back to keymap detection when xkbfile is used 2012-03-24 01:57:10 +01:00
Mads Kiilerich
df80dff43d locale: reintroduce use of freerdp_detect_keyboard for default keyboard layout id 2012-03-24 01:57:10 +01:00
Mads Kiilerich
f1fc6d0c25 locale: encapsulate X11_KEYCODE_TO_RDP_SCANCODE in keyboard.c 2012-03-24 01:57:10 +01:00
Mads Kiilerich
430d42aeac locale: encapsulate RDP_SCANCODE_TO_X11_KEYCODE in keyboard.c 2012-03-24 01:57:10 +01:00
Mads Kiilerich
25732265b2 locale: move conversion from xkb layout names to RDP IDs to xkb_layout_ids.c
Refactoring - no semantic changes.
2012-03-24 01:57:10 +01:00
Mads Kiilerich
cdfb2fbaed locale: drop redundant VIRTUAL_KEY_CODE_TO_RDP_SCANCODE_TABLE
The same information can be found in VIRTUAL_KEY_CODE_TO_DEFAULT_RDP_SCANCODE_TABLE.

Refactoring - no semantic changes.
2012-03-24 01:57:09 +01:00
Mads Kiilerich
da5ffe70ef locale: move keymap parsing to keyboard_keymap.c
Refactoring - no semantic changes.
2012-03-24 01:57:09 +01:00
Mads Kiilerich
9d69c9158c locale: clarify that WITH_XKBFILE is subordinate to WITH_X11
This should make no visible change in sane configurations.
2012-03-24 01:57:09 +01:00
Mads Kiilerich
3d57e65a65 locale: clarify internally what is xkbfile and what is xkb
Refactoring - no semantic changes.

--HG--
rename : libfreerdp-locale/keyboard_xkb.c => libfreerdp-locale/keyboard_xkbfile.c
rename : libfreerdp-locale/keyboard_xkb.h => libfreerdp-locale/keyboard_xkbfile.h
2012-03-24 01:57:09 +01:00
Mads Kiilerich
6c19f819e1 locale: move Virtual-Key Code definitions to virtual_key_codes.[ch]
Refactoring - no semantic changes.
2012-03-24 01:57:09 +01:00
Mads Kiilerich
faab56aae6 locale: introduce freerdp_keyboard_get_virtual_key_code_from_name
Refactoring - no semantic changes.
2012-03-24 01:57:09 +01:00
Vic Lee
ec9ca3e35f include: move config.h into private headers. 2012-03-12 19:14:56 +08:00
Marc-André Moreau
f380a5a9a7 libfreerdp-utils: added time utils 2012-03-06 09:23:59 -05:00
Bernhard Miklautz
dfae3edd86 timezone: Added missing ULL to get rid of compiler warnings 2012-03-01 15:30:20 +01:00
Mads Kiilerich
15169d0314 introduce generic ARRAY_SIZE macro 2012-02-28 18:11:11 +01:00
Marc-André Moreau
32a54130e7 xfreerdp: fix multiple memory leaks detected by valgrind 2012-02-27 10:55:49 -05:00
Marc-André Moreau
7a53ce4ff6 libfreerdp-locale: regenerate time zone table 2012-02-27 09:54:56 -05:00
Marc-André Moreau
c036f1172b libfreerdp-locale: fix XKB keymap loading 2012-02-23 18:42:54 -05:00
Marc-André Moreau
bc65c2d70f libfreerdp-locale: fix non-XKB keymap loading 2012-02-21 21:28:52 -05:00
Marc-André Moreau
8436f94e22 libfreerdp-locale: modify tables 2012-02-21 20:56:34 -05:00
Marc-André Moreau
8ca2219191 libfreerdp-locale: merging XKB maps for virtual key codes (extended and non-extended) 2012-02-21 20:34:26 -05:00
Marc-André Moreau
196cff5bfc Merge pull request #448 from kiilerix/master
minor stuff
2012-02-21 14:34:31 -08:00
Marc-André Moreau
5a0d7002cb libfreerdp-locale: added mapping for KPEN (keypad enter) 2012-02-21 17:33:31 -05:00
Mads Kiilerich
d2adf3de3f libfreerdp-locale: DEBUG_KBD of key mappings 2012-02-21 23:22:03 +01:00
Mads Kiilerich
1e46fae33e debug: remove extra newlines in debug messages 2012-02-21 23:22:01 +01:00
Marc-André Moreau
196490159b libfreerdp-locale: split virtual key code table in two, for extended keys 2012-02-21 17:10:10 -05:00
Marc-André Moreau
343630023f libfreerdp-locale: make VK_DIVIDE an extended key 2012-02-21 12:03:36 -05:00
Marc-André Moreau
a1f5eeea0c xfreerdp: fix and document --kbd-list option 2012-02-21 12:00:02 -05:00
Marc-André Moreau
a252002c24 libfreerdp-locale: fix non-XKB keymap loading 2012-02-20 12:25:45 -05:00
Marc-André Moreau
39acaa2792 libfreerdp-locale: fix non-XKB compilation 2012-02-19 22:06:55 -05:00
Marc-André Moreau
2152db9eb4 libfreerdp-locale: move time zone detection code 2012-02-19 21:08:12 -05:00
Marc-André Moreau
ed93d939f0 libfreerdp-locale: improved locale detection API 2012-02-19 20:48:04 -05:00
Marc-André Moreau
e85bfb4fd4 libfreerdp-locale: refactoring of XKB-based detection 2012-02-19 20:24:06 -05:00
Marc-André Moreau
46e3343232 libfreerdp-locale: refactoring of XKB dynamic mapping 2012-02-19 17:36:39 -05:00
Marc-André Moreau
9566d7bbd0 libfreerdp-locale: fix build without XKB 2012-02-19 12:54:27 -05:00
Marc-André Moreau
0e861b1bcb libfreerdp-locale: refactoring of locale detection code 2012-02-18 23:36:48 -05:00
Marc-André Moreau
94900c7836 libfreerdp-locale: merging keyboard headers 2012-02-18 23:08:17 -05:00
Marc-André Moreau
bd79959687 libfreerdp-locale: separate Solaris code 2012-02-18 22:54:44 -05:00
Marc-André Moreau
4af3ecd4cd libfreerdp-locale: refactoring step 1 2012-02-18 22:04:28 -05:00
Marc-André Moreau
61da01973d libfreerdp-locale: rename from libfreerdp-kbd, will contain all localization code 2012-02-17 17:43:00 -05:00