ReactOS  0.4.15-dev-4927-gfe8f806
kbdsg.c
Go to the documentation of this file.
1 /*
2  * ReactOS German (Switzerland) ASCII Keyboard layout
3  * Copyright (C) 2005 ReactOS
4  * License: LGPL, see: LGPL.txt
5  *
6  * Thanks to: http://www.barcodeman.com/altek/mule/scandoc.php
7  * and http://www.win.tue.nl/~aeb/linux/kbd/scancodes-1.html
8  * and http://www.unicode.org/charts/
9  */
10 
11 #define WIN32_NO_STATUS
12 #include <stdarg.h>
13 #include <windef.h>
14 #include <winuser.h>
15 #include <ndk/kbd.h>
16 
17 #ifdef _M_IA64
18 #define ROSDATA static __declspec(allocate(".data"))
19 #else
20 #ifdef _MSC_VER
21 #pragma data_seg(".data")
22 #define ROSDATA static
23 #else
24 #define ROSDATA static __attribute__((section(".data")))
25 #endif
26 #endif
27 
28 #define VK_EMPTY 0xff /* The non-existent VK */
29 
30 #define KNUMS KBDNUMPAD|KBDSPECIAL /* Special + number pad */
31 #define KMEXT KBDEXT|KBDMULTIVK /* Multi + ext */
32 
34  /* Numbers Row */
35  /* - 00 - */
36  /* 1 ... 2 ... 3 ... 4 ... */
37  VK_EMPTY, VK_ESCAPE, '1', '2',
38  '3', '4', '5', '6',
39  '7', '8', '9', '0',
41  /* - 0f - */
42  /* First Letters Row */
43  VK_TAB, 'Q', 'W', 'E',
44  'R', 'T', 'Z', 'U',
45  'I', 'O', 'P',
46  VK_OEM_1, VK_OEM_PLUS, VK_RETURN,
47  /* - 1d - */
48  /* Second Letters Row */
50  'A', 'S', 'D', 'F',
51  'G', 'H', 'J', 'K',
52  'L', VK_OEM_3, VK_OEM_7, VK_OEM_5,
53  /* - 2c - */
54  /* Third letters row */
56  'Y', 'X', 'C', 'V',
57  'B', 'N', 'M', VK_OEM_COMMA,
58  VK_OEM_PERIOD, VK_OEM_MINUS, VK_RSHIFT,
59  /* - 37 - */
60  /* Bottom Row */
62 
63  /* - 3b - */
64  /* F-Keys */
67  /* - 45 - */
68  /* Locks */
69  VK_NUMLOCK | KMEXT,
71  /* - 47 - */
72  /* Number-Pad */
77  /* - 54 - */
78  /* Presumably PrtSc */
80  /* - 55 - */
81  /* Oddities, and the remaining standard F-Keys */
82  VK_EMPTY, VK_OEM_102, VK_F11, VK_F12,
83  /* - 59 - */
84  VK_CLEAR, VK_EMPTY, VK_EMPTY, VK_EMPTY, VK_EMPTY, /* EREOF */
86  VK_HELP,
87  /* - 64 - */
88  /* Even more F-Keys (for example, NCR keyboards from the early 90's) */
91  /* - 6f - */
92  /* Not sure who uses these codes */
94  /* - 72 - */
96  /* - 76 - */
97  /* One more f-key */
98  VK_F24,
99  /* - 77 - */
101  VK_EMPTY, VK_EMPTY, VK_EMPTY, VK_EMPTY, /* PA1 */
102  VK_EMPTY,
103  /* - 80 - */
104  0
105 };
106 
108  { 0x10, VK_MEDIA_PREV_TRACK | KBDEXT },
109  { 0x19, VK_MEDIA_NEXT_TRACK | KBDEXT },
110  { 0x1D, VK_RCONTROL | KBDEXT },
111  { 0x20, VK_VOLUME_MUTE | KBDEXT },
112  { 0x21, VK_LAUNCH_APP2 | KBDEXT },
113  { 0x22, VK_MEDIA_PLAY_PAUSE | KBDEXT },
114  { 0x24, VK_MEDIA_STOP | KBDEXT },
115  { 0x2E, VK_VOLUME_DOWN | KBDEXT },
116  { 0x30, VK_VOLUME_UP | KBDEXT },
117  { 0x32, VK_BROWSER_HOME | KBDEXT },
118  { 0x35, VK_DIVIDE | KBDEXT },
119  { 0x37, VK_SNAPSHOT | KBDEXT },
120  { 0x38, VK_RMENU | KBDEXT },
121  { 0x47, VK_HOME | KBDEXT },
122  { 0x48, VK_UP | KBDEXT },
123  { 0x49, VK_PRIOR | KBDEXT },
124  { 0x4B, VK_LEFT | KBDEXT },
125  { 0x4D, VK_RIGHT | KBDEXT },
126  { 0x4F, VK_END | KBDEXT },
127  { 0x50, VK_DOWN | KBDEXT },
128  { 0x51, VK_NEXT | KBDEXT },
129  { 0x52, VK_INSERT | KBDEXT },
130  { 0x53, VK_DELETE | KBDEXT },
131  { 0x5B, VK_LWIN | KBDEXT },
132  { 0x5C, VK_RWIN | KBDEXT },
133  { 0x5D, VK_APPS | KBDEXT },
134  { 0x5F, VK_SLEEP | KBDEXT },
135  { 0x65, VK_BROWSER_SEARCH | KBDEXT },
136  { 0x66, VK_BROWSER_FAVORITES | KBDEXT },
137  { 0x67, VK_BROWSER_REFRESH | KBDEXT },
138  { 0x68, VK_BROWSER_STOP | KBDEXT },
139  { 0x69, VK_BROWSER_FORWARD | KBDEXT },
140  { 0x6A, VK_BROWSER_BACK | KBDEXT },
141  { 0x6B, VK_LAUNCH_APP1 | KBDEXT },
142  { 0x6C, VK_LAUNCH_MAIL | KBDEXT },
143  { 0x6D, VK_LAUNCH_MEDIA_SELECT | KBDEXT },
144  { 0x1C, VK_RETURN | KBDEXT },
145  { 0x46, VK_CANCEL | KBDEXT },
146  { 0, 0 },
147 };
148 
150  { 0x1d, VK_PAUSE},
151  { 0, 0 },
152 };
153 
155  { VK_SHIFT, KBDSHIFT },
156  { VK_CONTROL, KBDCTRL },
157  { VK_MENU, KBDALT },
158  { 0, 0 }
159 };
160 
163  6,
164  { 0, 1, 3, 4, SHFT_INVALID, SHFT_INVALID, 2 } /* Modifier bit order, NONE, SHIFT, CTRL, ALT, MENU, SHIFT + MENU, CTRL + MENU */
165 };
166 
167 /* ############################################ */
168 /* ############################################ */
169 /* ############################################ */
170 /* ############################################ */
171 /* ############################################ */
172 
173 ROSDATA VK_TO_WCHARS2 key_to_chars_2mod[] = {
174  { VK_OEM_5, 0, {0xa7, 0xb0} }, /* */
175 
176  /* Normal vs Shifted */
177  /* The numbers */
178  /* Ctrl-2 generates NUL */
179  { 0xff, 0, {0xa7, 0x9B} }, /* what is this for? */
180  { '4', 0, {'4', 0xE7} },
181  { '5', 0, {'5', '%'} },
182  { '9', 0, {'9', ')'} },
183  { '0', 0, {'0', '='} },
184 
185  /* First letter row */
186  { 'W', CAPLOK, {'w', 'W'} },
187  { 'R', CAPLOK, {'r', 'R'} },
188  { 'T', CAPLOK, {'t', 'T'} },
189  { 'Z', CAPLOK, {'z', 'Z'} },
190  { 'U', CAPLOK, {'u', 'U'} },
191  { 'I', CAPLOK, {'i', 'I'} },
192  { 'O', CAPLOK, {'o', 'O'} },
193  { 'P', CAPLOK, {'p', 'P'} },
194  /* Second letter row */
195  { 'A', CAPLOK, {'a', 'A'} },
196  { 'S', CAPLOK, {'s', 'S'} },
197  { 'D', CAPLOK, {'d', 'D'} },
198  { 'F', CAPLOK, {'f', 'F'} },
199  { 'G', CAPLOK, {'g', 'G'} },
200  { 'H', CAPLOK, {'h', 'H'} },
201  { 'J', CAPLOK, {'j', 'J'} },
202  { 'K', CAPLOK, {'k', 'K'} },
203  { 'L', CAPLOK, {'l', 'L'} },
204  /* Third letter row */
205  { 'Y', CAPLOK, {'y', 'Y'} },
206  { 'X', CAPLOK, {'x', 'X'} },
207  { 'V', CAPLOK, {'v', 'V'} },
208  { 'B', CAPLOK, {'b', 'B'} },
209  { 'N', CAPLOK, {'n', 'N'} },
210 
211  /* Specials */
212  { VK_OEM_COMMA, 0, {',', ';'} },
213  { VK_OEM_PERIOD, 0, {'.', ':'} },
214  { VK_OEM_MINUS, 0, {'-', '_'} },
215  { VK_DECIMAL, 0, {'.', '.'} },
216  { VK_TAB, 0, {'\t', '\t'} },
217  { VK_ADD, 0, {'+', '+'} },
218  { VK_DIVIDE, 0, {0x2f, 0x2f} }, /* '/' */
219  { VK_MULTIPLY, 0, {'*', '*'} },
220  { VK_SUBTRACT, 0, {'-', '-'} },
221  { 0, 0 }
222 };
223 
224 ROSDATA VK_TO_WCHARS3 key_to_chars_3mod[] = {
225  /* Normal, Shifted, Alt Gr */
226  /* Legacy (telnet-style) ascii escapes */
227  { VK_OEM_4, 0, {'\'' , '?' , WCH_DEAD} }, /* ' ? */
228  { 0xff, 0, {WCH_NONE, WCH_NONE, 0xb4} },
229  { 'Q', CAPLOK, {'q', 'Q', '@'} },
230  { 'C', CAPLOK, {'c', 'C', 0xa9} }, /* c C Copyright-Sign */
231  { 'E', CAPLOK, {'e', 'E', 0x20ac} }, /* e E */
232  { 'M', CAPLOK, {'m', 'M', 0xb5} }, /* m M mu-Sign */
233  { VK_OEM_102, 0, {'<', '>', '\\'} },
234  { 0,0 }
235 };
236 
237 ROSDATA VK_TO_WCHARS4 key_to_chars_4mod[] = {
238  /* Normal, Shifted, Alt Gr, C-S-x */
239  /* Legacy Ascii generators */
240  { VK_BACK, 0, {'\b', '\b', WCH_NONE, 0x7f} },
241  { VK_ESCAPE, 0, {0x1b, 0x1b, WCH_NONE, 0x1b} },
242  { VK_RETURN, 0, {'\r', '\r', WCH_NONE, '\n'} },
243  { VK_SPACE, 0, {' ', ' ', WCH_NONE, ' '} },
244  { VK_CANCEL, 0, {0x03, 0x03, WCH_NONE, 0x03} },
245  { 0, 0 }
246 };
247 
248 ROSDATA VK_TO_WCHARS5 key_to_chars_5mod[] = {
249  /* Normal, Shifted, Alt Gr, Ctrl */
250  { '1', 0, {'1', '+', '|', WCH_NONE, 0x00} },
251  { '2', 0, {'2', '\"', '@', WCH_NONE, 0x00} },
252  { '3', 0, {'3', '*', '#', WCH_NONE, 0x00} },
253  { '6', 0, {'6', '&', 0xac, WCH_NONE, 0x00} },
254  { '7', 0, {'7', '/', 0xa6, WCH_NONE, 0x00} },
255  { '8', 0, {'8', '(', 0xa2, WCH_NONE, 0x00} },
256  { VK_OEM_1, KBDCTRL, {0xfc, 0xe8, 0x5b, 0Xdc, 0xc8} }, /* [ */
257  { VK_OEM_2, 0, {0x24, 0xa3, 0x7d, WCH_NONE, 0x00} }, /* $ } */
258  { VK_OEM_3, KBDCTRL, {0xf6, 0xe9, WCH_NONE, 0xd6, 0xc9} }, /* / { VK_OEM_6, 0, {WCH_DEAD, WCH_DEAD, WCH_DEAD, WCH_NONE, 0x00} }, /* ^ ` ~ */ { 0xff, 0, {0x5e , 0x27 , 0x7e , WCH_NONE, 0x00} }, { VK_OEM_7, KBDCTRL, {0xe4, 0xe0, 0x7b, 0xc4, 0xc0} }, /* { */ { VK_OEM_PLUS, 0, {WCH_DEAD, 0x21 , 0x5D , WCH_NONE, 0x00} }, /* ! ] */ { 0xff, 0, {0xa8 , WCH_NONE, WCH_NONE, WCH_NONE, 0x00} }, { 0, 0 } }; ROSDATA VK_TO_WCHARS1 keypad_numbers[] = { { VK_DECIMAL, 0, {'.'} }, /* I have no idea why this has to be like this. Shouldn't it be a "."? */ { VK_NUMPAD0, 0, {'0'} }, { VK_NUMPAD1, 0, {'1'} }, { VK_NUMPAD2, 0, {'2'} }, { VK_NUMPAD3, 0, {'3'} }, { VK_NUMPAD4, 0, {'4'} }, { VK_NUMPAD5, 0, {'5'} }, { VK_NUMPAD6, 0, {'6'} }, { VK_NUMPAD7, 0, {'7'} }, { VK_NUMPAD8, 0, {'8'} }, { VK_NUMPAD9, 0, {'9'} }, // { VK_BACK, 0, '\010' }, { 0,0 } }; #define vk_master(n,x) { (PVK_TO_WCHARS1)x, n, sizeof(x[0]) } ROSDATA VK_TO_WCHAR_TABLE vk_to_wchar_master_table[] = { vk_master(3,key_to_chars_3mod), vk_master(4,key_to_chars_4mod), vk_master(5,key_to_chars_5mod), vk_master(2,key_to_chars_2mod), vk_master(1,keypad_numbers), { 0,0,0 } }; ROSDATA VSC_LPWSTR key_names[] = { { 0x00, L"" }, { 0x01, L"Esc" }, { 0x0e, L"R\x00fc" L"ck" }, { 0x0f, L"Tabulator" }, { 0x1c, L"Eingabe" }, { 0x1d, L"Ctrl" }, { 0x2a, L"Umschalt Links" }, { 0x36, L"Umschalt Rechts" }, { 0x37, L" (Zehnertastatur)" }, { 0x38, L"Alt" }, { 0x39, L"Leer" }, { 0x3a, L"CAPLOK Lock" }, { 0x3b, L"F1" }, { 0x3c, L"F2" }, { 0x3d, L"F3" }, { 0x3e, L"F4" }, { 0x3f, L"F5" }, { 0x40, L"F6" }, { 0x41, L"F7" }, { 0x42, L"F8" }, { 0x43, L"F9" }, { 0x44, L"F10" }, { 0x45, L"Pause" }, { 0x46, L"Rollen-Feststell" }, { 0x47, L"7 (Zehnertastatur)" }, { 0x48, L"8 (Zehnertastatur)" }, { 0x49, L"9 (Zehnertastatur)" }, { 0x4a, L"- (Zehnertastatur)" }, { 0x4b, L"4 (Zehnertastatur)" }, { 0x4c, L"5 (Zehnertastatur)" }, { 0x4d, L"6 (Zehnertastatur)" }, { 0x4e, L"+ (Zehnertastatur)" }, { 0x4f, L"1 (Zehnertastatur)" }, { 0x50, L"2 (Zehnertastatur)" }, { 0x51, L"3 (Zehnertastatur)" }, { 0x52, L"0 (Zehnertastatur)" }, { 0x53, L"Punkt (Zehnertastatur)" }, { 0x54, L"Sys Req" }, { 0x57, L"F11" }, { 0x58, L"F12" }, { 0x7c, L"F13" }, { 0x7d, L"F14" }, { 0x7e, L"F15" }, { 0x7f, L"F16" }, { 0x80, L"F17" }, { 0x81, L"F18" }, { 0x82, L"F19" }, { 0x83, L"F20" }, { 0x84, L"F21" }, { 0x85, L"F22" }, { 0x86, L"F23" }, { 0x87, L"F24" }, { 0, NULL }, }; ROSDATA VSC_LPWSTR extended_key_names[] = { { 0x1c, L"Eingabe (Zehnertastatur" }, { 0x1d, L"Strg-Rechts" }, { 0x35, L" (Zehnertastatur)" }, { 0x37, L"Druck" }, { 0x38, L"Alt Gr" }, { 0x45, L"Num-Feststell" }, { 0x46, L"Untbr" }, { 0x47, L"Pos1" }, { 0x48, L"Nach-Oben" }, { 0x49, L"Bild-Nach-Oben" }, { 0x4b, L"Nach-Links" }, //{ 0x4c, L"Center" }, { 0x4d, L"Nach-Rechts" }, { 0x4f, L"Ende" }, { 0x50, L"Nach-Unten" }, { 0x51, L"Bild-Nach-Unten" }, { 0x52, L"Einfg" }, { 0x53, L"Entf" }, { 0x54, L"<ReactOS>" }, { 0x55, L"Hilfe" }, { 0x56, L"Linke <ReactOS>" }, { 0x5b, L"Rechte <ReactOS>" }, { 0, NULL }, }; ROSDATA DEADKEY_LPWSTR dead_key_names[] = { L"\x00b4" L"Akut", L"`" L"Gravis", L"^" L"Zirkumflex", NULL }; #define DEADTRANS(ch, accent, comp, flags) MAKELONG(ch, accent), comp, flags ROSDATA DEADKEY dead_key[] = { { DEADTRANS(L'a', L'^', 0xe2, 0x00) },/* ^ */ { DEADTRANS(L'e', L'^', 0xea, 0x00) }, { DEADTRANS(L'i', L'^', 0xee, 0x00) }, { DEADTRANS(L'o', L'^', 0xf4, 0x00) }, { DEADTRANS(L'u', L'^', 0xfb, 0x00) }, { DEADTRANS(L'A', L'^', 0xc2, 0x00) }, { DEADTRANS(L'E', L'^', 0xca, 0x00) }, { DEADTRANS(L'I', L'^', 0xce, 0x00) }, { DEADTRANS(L'O', L'^', 0xd4, 0x00) }, { DEADTRANS(L'U', L'^', 0xdb, 0x00) }, { DEADTRANS(L' ', L'^', L'^', 0x00) }, { DEADTRANS(L'a', 0xb4, 0xe1, 0x00) }, /* */ { DEADTRANS(L'e', 0xb4, 0xe9, 0x00) }, { DEADTRANS(L'i', 0xb4, 0xed, 0x00) }, { DEADTRANS(L'o', 0xb4, 0xf3, 0x00) }, { DEADTRANS(L'u', 0xb4, 0xfa, 0x00) }, { DEADTRANS(L'y', 0xb4, 0xfd, 0x00) }, { DEADTRANS(L'A', 0xb4, 0xc1, 0x00) }, { DEADTRANS(L'E', 0xb4, 0xc9, 0x00) }, { DEADTRANS(L'I', 0xb4, 0xcd, 0x00) }, { DEADTRANS(L'O', 0xb4, 0xd3, 0x00) }, { DEADTRANS(L'U', 0xb4, 0xda, 0x00) }, { DEADTRANS(L'Y', 0xb4, 0xdd, 0x00) }, { DEADTRANS(L' ', 0xb4, 0xb4, 0x00) }, { DEADTRANS(L'a', L'`', 0xe0, 0x00) }, /* ` */ { DEADTRANS(L'e', L'`', 0xe8, 0x00) }, { DEADTRANS(L'i', L'`', 0xec, 0x00) }, { DEADTRANS(L'o', L'`', 0xf2, 0x00) }, { DEADTRANS(L'u', L'`', 0xf9, 0x00) }, { DEADTRANS(L'A', L'`', 0xc0, 0x00) }, { DEADTRANS(L'E', L'`', 0xc8, 0x00) }, { DEADTRANS(L'I', L'`', 0xcc, 0x00) }, { DEADTRANS(L'O', L'`', 0xd2, 0x00) }, { DEADTRANS(L'U', L'`', 0xd9, 0x00) }, { DEADTRANS(L' ', L'`', L'`', 0x00) }, { DEADTRANS(L' ', 0xa8, 0xa8, 0x00) }, /* */ { DEADTRANS(L'a', 0xa8, 0xe4, 0x00) }, { DEADTRANS(L'e', 0xa8, 0xeb, 0x00) }, { DEADTRANS(L'i', 0xa8, 0xef, 0x00) }, { DEADTRANS(L'o', 0xa8, 0xf6, 0x00) }, { DEADTRANS(L'u', 0xa8, 0xfc, 0x00) }, { DEADTRANS(L'y', 0xa8, 0xff, 0x00) }, { DEADTRANS(L'A', 0xa8, 0xc4, 0x00) }, { DEADTRANS(L'E', 0xa8, 0xcb, 0x00) }, { DEADTRANS(L'I', 0xa8, 0xcf, 0x00) }, { DEADTRANS(L'O', 0xa8, 0xd6, 0x00) }, { DEADTRANS(L'U', 0xa8, 0xdc, 0x00) }, { DEADTRANS(L' ', 0x7e, 0x7e, 0x00) }, /* ~ */ { DEADTRANS(L'a', 0x7e, 0xe3, 0x00) }, { DEADTRANS(L'o', 0x7e, 0xf5, 0x00) }, { DEADTRANS(L'n', 0x7e, 0xf1, 0x00) }, { DEADTRANS(L'A', 0x7e, 0xc3, 0x00) }, { DEADTRANS(L'O', 0x7e, 0xd5, 0x00) }, { DEADTRANS(L'N', 0x7e, 0xd1, 0x00) }, { 0, 0 } }; /* Finally, the master table */ ROSDATA KBDTABLES keyboard_layout_table = { /* modifier assignments */ &modifier_bits, /* character from vk tables */ vk_to_wchar_master_table, /* diacritical marks -- currently implemented by wine code */ dead_key, /* Key names */ (VSC_LPWSTR *)key_names, (VSC_LPWSTR *)extended_key_names, dead_key_names, /* Dead key names */ /* scan code to virtual key maps */ scancode_to_vk, sizeof(scancode_to_vk) / sizeof(scancode_to_vk[0]), extcode0_to_vk, extcode1_to_vk, MAKELONG(KLLF_ALTGR, 1), /* Version 1.0 */ /* Ligatures -- German doesn't have any */ 0, 0, NULL }; PKBDTABLES WINAPI KbdLayerDescriptor(VOID) { return &keyboard_layout_table; } */
259  { VK_OEM_6, 0, {WCH_DEAD, WCH_DEAD, WCH_DEAD, WCH_NONE, 0x00} }, /* ^ ` ~ */
260  { 0xff, 0, {0x5e , 0x27 , 0x7e , WCH_NONE, 0x00} },
261  { VK_OEM_7, KBDCTRL, {0xe4, 0xe0, 0x7b, 0xc4, 0xc0} }, /* { */
262  { VK_OEM_PLUS, 0, {WCH_DEAD, 0x21 , 0x5D , WCH_NONE, 0x00} }, /* ! ] */
263  { 0xff, 0, {0xa8 , WCH_NONE, WCH_NONE, WCH_NONE, 0x00} },
264  { 0, 0 }
265 };
266 
267 ROSDATA VK_TO_WCHARS1 keypad_numbers[] = {
268  { VK_DECIMAL, 0, {'.'} }, /* I have no idea why this has to be like this. Shouldn't it be a "."? */
269  { VK_NUMPAD0, 0, {'0'} },
270  { VK_NUMPAD1, 0, {'1'} },
271  { VK_NUMPAD2, 0, {'2'} },
272  { VK_NUMPAD3, 0, {'3'} },
273  { VK_NUMPAD4, 0, {'4'} },
274  { VK_NUMPAD5, 0, {'5'} },
275  { VK_NUMPAD6, 0, {'6'} },
276  { VK_NUMPAD7, 0, {'7'} },
277  { VK_NUMPAD8, 0, {'8'} },
278  { VK_NUMPAD9, 0, {'9'} },
279 // { VK_BACK, 0, '\010' },
280  { 0,0 }
281 };
282 
283 #define vk_master(n,x) { (PVK_TO_WCHARS1)x, n, sizeof(x[0]) }
284 
291  { 0,0,0 }
292 };
293 
295  { 0x00, L"" },
296  { 0x01, L"Esc" },
297  { 0x0e, L"R\x00fc" L"ck" },
298  { 0x0f, L"Tabulator" },
299  { 0x1c, L"Eingabe" },
300  { 0x1d, L"Ctrl" },
301  { 0x2a, L"Umschalt Links" },
302  { 0x36, L"Umschalt Rechts" },
303  { 0x37, L" (Zehnertastatur)" },
304  { 0x38, L"Alt" },
305  { 0x39, L"Leer" },
306  { 0x3a, L"CAPLOK Lock" },
307  { 0x3b, L"F1" },
308  { 0x3c, L"F2" },
309  { 0x3d, L"F3" },
310  { 0x3e, L"F4" },
311  { 0x3f, L"F5" },
312  { 0x40, L"F6" },
313  { 0x41, L"F7" },
314  { 0x42, L"F8" },
315  { 0x43, L"F9" },
316  { 0x44, L"F10" },
317  { 0x45, L"Pause" },
318  { 0x46, L"Rollen-Feststell" },
319  { 0x47, L"7 (Zehnertastatur)" },
320  { 0x48, L"8 (Zehnertastatur)" },
321  { 0x49, L"9 (Zehnertastatur)" },
322  { 0x4a, L"- (Zehnertastatur)" },
323  { 0x4b, L"4 (Zehnertastatur)" },
324  { 0x4c, L"5 (Zehnertastatur)" },
325  { 0x4d, L"6 (Zehnertastatur)" },
326  { 0x4e, L"+ (Zehnertastatur)" },
327  { 0x4f, L"1 (Zehnertastatur)" },
328  { 0x50, L"2 (Zehnertastatur)" },
329  { 0x51, L"3 (Zehnertastatur)" },
330  { 0x52, L"0 (Zehnertastatur)" },
331  { 0x53, L"Punkt (Zehnertastatur)" },
332  { 0x54, L"Sys Req" },
333  { 0x57, L"F11" },
334  { 0x58, L"F12" },
335  { 0x7c, L"F13" },
336  { 0x7d, L"F14" },
337  { 0x7e, L"F15" },
338  { 0x7f, L"F16" },
339  { 0x80, L"F17" },
340  { 0x81, L"F18" },
341  { 0x82, L"F19" },
342  { 0x83, L"F20" },
343  { 0x84, L"F21" },
344  { 0x85, L"F22" },
345  { 0x86, L"F23" },
346  { 0x87, L"F24" },
347  { 0, NULL },
348 };
349 
351  { 0x1c, L"Eingabe (Zehnertastatur" },
352  { 0x1d, L"Strg-Rechts" },
353  { 0x35, L" (Zehnertastatur)" },
354  { 0x37, L"Druck" },
355  { 0x38, L"Alt Gr" },
356  { 0x45, L"Num-Feststell" },
357  { 0x46, L"Untbr" },
358  { 0x47, L"Pos1" },
359  { 0x48, L"Nach-Oben" },
360  { 0x49, L"Bild-Nach-Oben" },
361  { 0x4b, L"Nach-Links" },
362 //{ 0x4c, L"Center" },
363  { 0x4d, L"Nach-Rechts" },
364  { 0x4f, L"Ende" },
365  { 0x50, L"Nach-Unten" },
366  { 0x51, L"Bild-Nach-Unten" },
367  { 0x52, L"Einfg" },
368  { 0x53, L"Entf" },
369  { 0x54, L"<ReactOS>" },
370  { 0x55, L"Hilfe" },
371  { 0x56, L"Linke <ReactOS>" },
372  { 0x5b, L"Rechte <ReactOS>" },
373  { 0, NULL },
374 };
375 
377  L"\x00b4" L"Akut",
378  L"`" L"Gravis",
379  L"^" L"Zirkumflex",
380  NULL
381 };
382 
383 #define DEADTRANS(ch, accent, comp, flags) MAKELONG(ch, accent), comp, flags
384 
386  { DEADTRANS(L'a', L'^', 0xe2, 0x00) },/* ^ */
387  { DEADTRANS(L'e', L'^', 0xea, 0x00) },
388  { DEADTRANS(L'i', L'^', 0xee, 0x00) },
389  { DEADTRANS(L'o', L'^', 0xf4, 0x00) },
390  { DEADTRANS(L'u', L'^', 0xfb, 0x00) },
391  { DEADTRANS(L'A', L'^', 0xc2, 0x00) },
392  { DEADTRANS(L'E', L'^', 0xca, 0x00) },
393  { DEADTRANS(L'I', L'^', 0xce, 0x00) },
394  { DEADTRANS(L'O', L'^', 0xd4, 0x00) },
395  { DEADTRANS(L'U', L'^', 0xdb, 0x00) },
396  { DEADTRANS(L' ', L'^', L'^', 0x00) },
397  { DEADTRANS(L'a', 0xb4, 0xe1, 0x00) }, /* */
398  { DEADTRANS(L'e', 0xb4, 0xe9, 0x00) },
399  { DEADTRANS(L'i', 0xb4, 0xed, 0x00) },
400  { DEADTRANS(L'o', 0xb4, 0xf3, 0x00) },
401  { DEADTRANS(L'u', 0xb4, 0xfa, 0x00) },
402  { DEADTRANS(L'y', 0xb4, 0xfd, 0x00) },
403  { DEADTRANS(L'A', 0xb4, 0xc1, 0x00) },
404  { DEADTRANS(L'E', 0xb4, 0xc9, 0x00) },
405  { DEADTRANS(L'I', 0xb4, 0xcd, 0x00) },
406  { DEADTRANS(L'O', 0xb4, 0xd3, 0x00) },
407  { DEADTRANS(L'U', 0xb4, 0xda, 0x00) },
408  { DEADTRANS(L'Y', 0xb4, 0xdd, 0x00) },
409  { DEADTRANS(L' ', 0xb4, 0xb4, 0x00) },
410  { DEADTRANS(L'a', L'`', 0xe0, 0x00) }, /* ` */
411  { DEADTRANS(L'e', L'`', 0xe8, 0x00) },
412  { DEADTRANS(L'i', L'`', 0xec, 0x00) },
413  { DEADTRANS(L'o', L'`', 0xf2, 0x00) },
414  { DEADTRANS(L'u', L'`', 0xf9, 0x00) },
415  { DEADTRANS(L'A', L'`', 0xc0, 0x00) },
416  { DEADTRANS(L'E', L'`', 0xc8, 0x00) },
417  { DEADTRANS(L'I', L'`', 0xcc, 0x00) },
418  { DEADTRANS(L'O', L'`', 0xd2, 0x00) },
419  { DEADTRANS(L'U', L'`', 0xd9, 0x00) },
420  { DEADTRANS(L' ', L'`', L'`', 0x00) },
421  { DEADTRANS(L' ', 0xa8, 0xa8, 0x00) }, /* */
422  { DEADTRANS(L'a', 0xa8, 0xe4, 0x00) },
423  { DEADTRANS(L'e', 0xa8, 0xeb, 0x00) },
424  { DEADTRANS(L'i', 0xa8, 0xef, 0x00) },
425  { DEADTRANS(L'o', 0xa8, 0xf6, 0x00) },
426  { DEADTRANS(L'u', 0xa8, 0xfc, 0x00) },
427  { DEADTRANS(L'y', 0xa8, 0xff, 0x00) },
428  { DEADTRANS(L'A', 0xa8, 0xc4, 0x00) },
429  { DEADTRANS(L'E', 0xa8, 0xcb, 0x00) },
430  { DEADTRANS(L'I', 0xa8, 0xcf, 0x00) },
431  { DEADTRANS(L'O', 0xa8, 0xd6, 0x00) },
432  { DEADTRANS(L'U', 0xa8, 0xdc, 0x00) },
433  { DEADTRANS(L' ', 0x7e, 0x7e, 0x00) }, /* ~ */
434  { DEADTRANS(L'a', 0x7e, 0xe3, 0x00) },
435  { DEADTRANS(L'o', 0x7e, 0xf5, 0x00) },
436  { DEADTRANS(L'n', 0x7e, 0xf1, 0x00) },
437  { DEADTRANS(L'A', 0x7e, 0xc3, 0x00) },
438  { DEADTRANS(L'O', 0x7e, 0xd5, 0x00) },
439  { DEADTRANS(L'N', 0x7e, 0xd1, 0x00) },
440  { 0, 0 }
441 };
442 
443 /* Finally, the master table */
445  /* modifier assignments */
446  &modifier_bits,
447 
448  /* character from vk tables */
450 
451  /* diacritical marks -- currently implemented by wine code */
452  dead_key,
453 
454  /* Key names */
457  dead_key_names, /* Dead key names */
458 
459  /* scan code to virtual key maps */
461  sizeof(scancode_to_vk) / sizeof(scancode_to_vk[0]),
464 
465  MAKELONG(KLLF_ALTGR, 1), /* Version 1.0 */
466 
467  /* Ligatures -- German doesn't have any */
468  0,
469  0,
470  NULL
471 };
472 
474  return &keyboard_layout_table;
475 }
476 
#define VK_SUBTRACT
Definition: winuser.h:2232
#define VK_NUMPAD8
Definition: winuser.h:2227
#define VK_NUMPAD0
Definition: winuser.h:2219
WCHAR * DEADKEY_LPWSTR
Definition: kbd.h:62
#define VK_SLEEP
Definition: winuser.h:2218
#define VK_F5
Definition: winuser.h:2239
#define KBDCTRL
Definition: kbd.h:15
#define VK_F6
Definition: winuser.h:2240
ROSDATA KBDTABLES keyboard_layout_table
Definition: kbdsg.c:444
#define VK_NUMPAD6
Definition: winuser.h:2225
#define VK_RMENU
Definition: winuser.h:2267
#define VK_LSHIFT
Definition: winuser.h:2262
Definition: kbd.h:21
Definition: kbd.h:26
#define VK_NUMPAD5
Definition: winuser.h:2224
#define VK_F9
Definition: winuser.h:2243
#define VK_ADD
Definition: winuser.h:2230
#define VK_LEFT
Definition: winuser.h:2204
#define KBDSHIFT
Definition: kbd.h:14
ROSDATA VK_TO_BIT modifier_keys[]
Definition: kbdsg.c:154
#define VK_F15
Definition: winuser.h:2249
#define VK_OEM_5
Definition: winuser.h:2298
#define VK_LWIN
Definition: winuser.h:2215
#define VK_TAB
Definition: winuser.h:2179
#define VK_DOWN
Definition: winuser.h:2207
#define VK_INSERT
Definition: winuser.h:2212
#define VK_DECIMAL
Definition: winuser.h:2233
#define VK_PRIOR
Definition: winuser.h:2200
#define VK_MENU
Definition: winuser.h:2184
#define VK_ESCAPE
Definition: winuser.h:2194
ROSDATA USHORT scancode_to_vk[]
Definition: kbdsg.c:33
#define VK_NUMPAD9
Definition: winuser.h:2228
#define VK_RETURN
Definition: winuser.h:2181
#define CAPLOK
Definition: kbd.h:118
#define VK_NEXT
Definition: winuser.h:2201
#define VK_F10
Definition: winuser.h:2244
ROSDATA VK_TO_WCHARS4 key_to_chars_4mod[]
Definition: kbdsg.c:237
#define WCH_NONE
Definition: kbd.h:113
#define KLLF_ALTGR
Definition: kbd.h:91
#define VK_OEM_4
Definition: winuser.h:2297
#define VK_HOME
Definition: winuser.h:2203
#define L(x)
Definition: ntvdm.h:50
#define VK_UP
Definition: winuser.h:2205
#define KBDMULTIVK
Definition: kbd.h:9
#define VK_EMPTY
Definition: kbdsg.c:28
#define VK_F4
Definition: winuser.h:2238
#define VK_F2
Definition: winuser.h:2236
#define VK_SHIFT
Definition: winuser.h:2182
#define MAKELONG(a, b)
Definition: typedefs.h:249
#define SHFT_INVALID
Definition: kbd.h:19
#define VK_MULTIPLY
Definition: winuser.h:2229
ROSDATA VK_TO_WCHARS3 key_to_chars_3mod[]
Definition: kbdsg.c:224
#define VK_NUMPAD3
Definition: winuser.h:2222
#define VK_OEM_6
Definition: winuser.h:2299
ROSDATA VSC_LPWSTR extended_key_names[]
Definition: kbdsg.c:350
#define vk_master(n, x)
Definition: kbdsg.c:283
#define VK_DELETE
Definition: winuser.h:2213
ROSDATA VSC_VK extcode0_to_vk[]
Definition: kbdsg.c:107
#define VK_F19
Definition: winuser.h:2253
ROSDATA MODIFIERS modifier_bits
Definition: kbdsg.c:161
#define VK_F16
Definition: winuser.h:2250
#define VK_OEM_7
Definition: winuser.h:2300
#define VK_F17
Definition: winuser.h:2251
#define VK_F7
Definition: winuser.h:2241
#define DEADTRANS(ch, accent, comp, flags)
Definition: kbdsg.c:383
#define ROSDATA
Definition: kbdsg.c:24
#define VK_APPS
Definition: winuser.h:2217
ROSDATA VSC_VK extcode1_to_vk[]
Definition: kbdsg.c:149
#define VK_F12
Definition: winuser.h:2246
Definition: kbd.h:95
#define WINAPI
Definition: msvc.h:6
ROSDATA VK_TO_WCHAR_TABLE vk_to_wchar_master_table[]
Definition: kbdsg.c:285
ROSDATA VSC_LPWSTR key_names[]
Definition: kbdsg.c:294
#define VK_NUMPAD4
Definition: winuser.h:2223
#define VK_F3
Definition: winuser.h:2237
#define VK_CANCEL
Definition: winuser.h:2172
#define VK_F23
Definition: winuser.h:2257
#define VK_F8
Definition: winuser.h:2242
#define VK_RCONTROL
Definition: winuser.h:2265
#define VK_LMENU
Definition: winuser.h:2266
#define VK_RSHIFT
Definition: winuser.h:2263
#define VK_OEM_3
Definition: winuser.h:2296
#define KNUMS
Definition: kbdsg.c:30
#define VK_BACK
Definition: winuser.h:2178
#define VK_RWIN
Definition: winuser.h:2216
Definition: kbd.h:71
#define VK_RIGHT
Definition: winuser.h:2206
#define VK_NUMPAD7
Definition: winuser.h:2226
#define KBDEXT
Definition: kbd.h:8
#define VK_HELP
Definition: winuser.h:2214
#define KBDALT
Definition: kbd.h:16
#define VK_SCROLL
Definition: winuser.h:2260
#define VK_NUMLOCK
Definition: winuser.h:2259
unsigned short USHORT
Definition: pedump.c:61
ROSDATA DEADKEY dead_key[]
Definition: kbdsg.c:385
#define VK_F22
Definition: winuser.h:2256
#define VK_CAPITAL
Definition: winuser.h:2186
#define VK_F20
Definition: winuser.h:2254
#define VK_NUMPAD2
Definition: winuser.h:2221
#define NULL
Definition: types.h:112
#define VK_SPACE
Definition: winuser.h:2199
#define WCH_DEAD
Definition: kbd.h:114
#define VK_F1
Definition: winuser.h:2235
#define VK_CONTROL
Definition: winuser.h:2183
ROSDATA DEADKEY_LPWSTR dead_key_names[]
Definition: kbdsg.c:376
ROSDATA VK_TO_WCHARS5 key_to_chars_5mod[]
Definition: kbdsg.c:248
#define VK_DIVIDE
Definition: winuser.h:2234
#define VK_PAUSE
Definition: winuser.h:2185
#define VK_F11
Definition: winuser.h:2245
#define KMEXT
Definition: kbdsg.c:31
Definition: kbd.h:56
ROSDATA VK_TO_WCHARS1 keypad_numbers[]
Definition: kbdsg.c:267
PKBDTABLES WINAPI KbdLayerDescriptor(VOID)
Definition: kbdsg.c:473
#define VK_F21
Definition: winuser.h:2255
#define VK_F24
Definition: winuser.h:2258
#define VK_F13
Definition: winuser.h:2247
#define VK_CLEAR
Definition: winuser.h:2180
#define VK_LCONTROL
Definition: winuser.h:2264
#define VK_NUMPAD1
Definition: winuser.h:2220
#define VK_SNAPSHOT
Definition: winuser.h:2211
#define VK_END
Definition: winuser.h:2202
#define VK_OEM_2
Definition: winuser.h:2295
#define VK_OEM_1
Definition: winuser.h:2288
#define VK_F14
Definition: winuser.h:2248
ROSDATA VK_TO_WCHARS2 key_to_chars_2mod[]
Definition: kbdsg.c:173
#define VK_F18
Definition: winuser.h:2252