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 33 ROSDATA USHORT scancode_to_vk[] = { 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', 40 VK_OEM_4, VK_OEM_6, VK_BACK, 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 */ 49 VK_LCONTROL, 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 */ 55 VK_LSHIFT, VK_OEM_2, 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 */ 61 VK_MULTIPLY, VK_LMENU, VK_SPACE, VK_CAPITAL, 62 63 /* - 3b - */ 64 /* F-Keys */ 65 VK_F1, VK_F2, VK_F3, VK_F4, VK_F5, VK_F6, 66 VK_F7, VK_F8, VK_F9, VK_F10, 67 /* - 45 - */ 68 /* Locks */ 69 VK_NUMLOCK | KMEXT, 70 VK_SCROLL | KBDMULTIVK, 71 /* - 47 - */ 72 /* Number-Pad */ 73 VK_HOME | KNUMS, VK_UP | KNUMS, VK_PRIOR | KNUMS, VK_SUBTRACT, 74 VK_LEFT | KNUMS, VK_CLEAR | KNUMS, VK_RIGHT | KNUMS, VK_ADD, 75 VK_END | KNUMS, VK_DOWN | KNUMS, VK_NEXT | KNUMS, 76 VK_INSERT | KNUMS, VK_DELETE | KNUMS, 77 /* - 54 - */ 78 /* Presumably PrtSc */ 79 VK_SNAPSHOT, 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 */ 85 VK_EMPTY, VK_EMPTY, VK_EMPTY, VK_EMPTY, VK_EMPTY, /* ZOOM */ 86 VK_HELP, 87 /* - 64 - */ 88 /* Even more F-Keys (for example, NCR keyboards from the early 90's) */ 89 VK_F13, VK_F14, VK_F15, VK_F16, VK_F17, VK_F18, VK_F19, VK_F20, 90 VK_F21, VK_F22, VK_F23, 91 /* - 6f - */ 92 /* Not sure who uses these codes */ 93 VK_EMPTY, VK_EMPTY, VK_EMPTY, 94 /* - 72 - */ 95 VK_EMPTY, VK_EMPTY, VK_EMPTY, VK_EMPTY, 96 /* - 76 - */ 97 /* One more f-key */ 98 VK_F24, 99 /* - 77 - */ 100 VK_EMPTY, VK_EMPTY, VK_EMPTY, VK_EMPTY, 101 VK_EMPTY, VK_EMPTY, VK_EMPTY, VK_EMPTY, /* PA1 */ 102 }; 103 104 ROSDATA VSC_VK extcode0_to_vk[] = { 105 { 0x10, VK_MEDIA_PREV_TRACK | KBDEXT }, 106 { 0x19, VK_MEDIA_NEXT_TRACK | KBDEXT }, 107 { 0x1D, VK_RCONTROL | KBDEXT }, 108 { 0x20, VK_VOLUME_MUTE | KBDEXT }, 109 { 0x21, VK_LAUNCH_APP2 | KBDEXT }, 110 { 0x22, VK_MEDIA_PLAY_PAUSE | KBDEXT }, 111 { 0x24, VK_MEDIA_STOP | KBDEXT }, 112 { 0x2E, VK_VOLUME_DOWN | KBDEXT }, 113 { 0x30, VK_VOLUME_UP | KBDEXT }, 114 { 0x32, VK_BROWSER_HOME | KBDEXT }, 115 { 0x35, VK_DIVIDE | KBDEXT }, 116 { 0x37, VK_SNAPSHOT | KBDEXT }, 117 { 0x38, VK_RMENU | KBDEXT }, 118 { 0x47, VK_HOME | KBDEXT }, 119 { 0x48, VK_UP | KBDEXT }, 120 { 0x49, VK_PRIOR | KBDEXT }, 121 { 0x4B, VK_LEFT | KBDEXT }, 122 { 0x4D, VK_RIGHT | KBDEXT }, 123 { 0x4F, VK_END | KBDEXT }, 124 { 0x50, VK_DOWN | KBDEXT }, 125 { 0x51, VK_NEXT | KBDEXT }, 126 { 0x52, VK_INSERT | KBDEXT }, 127 { 0x53, VK_DELETE | KBDEXT }, 128 { 0x5B, VK_LWIN | KBDEXT }, 129 { 0x5C, VK_RWIN | KBDEXT }, 130 { 0x5D, VK_APPS | KBDEXT }, 131 { 0x5F, VK_SLEEP | KBDEXT }, 132 { 0x65, VK_BROWSER_SEARCH | KBDEXT }, 133 { 0x66, VK_BROWSER_FAVORITES | KBDEXT }, 134 { 0x67, VK_BROWSER_REFRESH | KBDEXT }, 135 { 0x68, VK_BROWSER_STOP | KBDEXT }, 136 { 0x69, VK_BROWSER_FORWARD | KBDEXT }, 137 { 0x6A, VK_BROWSER_BACK | KBDEXT }, 138 { 0x6B, VK_LAUNCH_APP1 | KBDEXT }, 139 { 0x6C, VK_LAUNCH_MAIL | KBDEXT }, 140 { 0x6D, VK_LAUNCH_MEDIA_SELECT | KBDEXT }, 141 { 0x1C, VK_RETURN | KBDEXT }, 142 { 0x46, VK_CANCEL | KBDEXT }, 143 { 0, 0 }, 144 }; 145 146 ROSDATA VSC_VK extcode1_to_vk[] = { 147 { 0x1d, VK_PAUSE}, 148 { 0, 0 }, 149 }; 150 151 ROSDATA VK_TO_BIT modifier_keys[] = { 152 { VK_SHIFT, KBDSHIFT }, 153 { VK_CONTROL, KBDCTRL }, 154 { VK_MENU, KBDALT }, 155 { 0, 0 } 156 }; 157 158 ROSDATA MODIFIERS modifier_bits = { 159 modifier_keys, 160 6, 161 { 0, 1, 3, 4, SHFT_INVALID, SHFT_INVALID, 2 } /* Modifier bit order, NONE, SHIFT, CTRL, ALT, MENU, SHIFT + MENU, CTRL + MENU */ 162 }; 163 164 /* ############################################ */ 165 /* ############################################ */ 166 /* ############################################ */ 167 /* ############################################ */ 168 /* ############################################ */ 169 170 ROSDATA VK_TO_WCHARS2 key_to_chars_2mod[] = { 171 { VK_OEM_5, 0, {0xa7, 0xb0} }, /* � � */ 172 173 /* Normal vs Shifted */ 174 /* The numbers */ 175 /* Ctrl-2 generates NUL */ 176 { 0xff, 0, {0xa7, 0x9B} }, /* what is this for? */ 177 { '4', 0, {'4', 0xE7} }, 178 { '5', 0, {'5', '%'} }, 179 { '9', 0, {'9', ')'} }, 180 { '0', 0, {'0', '='} }, 181 182 /* First letter row */ 183 { 'W', CAPLOK, {'w', 'W'} }, 184 { 'R', CAPLOK, {'r', 'R'} }, 185 { 'T', CAPLOK, {'t', 'T'} }, 186 { 'Z', CAPLOK, {'z', 'Z'} }, 187 { 'U', CAPLOK, {'u', 'U'} }, 188 { 'I', CAPLOK, {'i', 'I'} }, 189 { 'O', CAPLOK, {'o', 'O'} }, 190 { 'P', CAPLOK, {'p', 'P'} }, 191 /* Second letter row */ 192 { 'A', CAPLOK, {'a', 'A'} }, 193 { 'S', CAPLOK, {'s', 'S'} }, 194 { 'D', CAPLOK, {'d', 'D'} }, 195 { 'F', CAPLOK, {'f', 'F'} }, 196 { 'G', CAPLOK, {'g', 'G'} }, 197 { 'H', CAPLOK, {'h', 'H'} }, 198 { 'J', CAPLOK, {'j', 'J'} }, 199 { 'K', CAPLOK, {'k', 'K'} }, 200 { 'L', CAPLOK, {'l', 'L'} }, 201 /* Third letter row */ 202 { 'Y', CAPLOK, {'y', 'Y'} }, 203 { 'X', CAPLOK, {'x', 'X'} }, 204 { 'V', CAPLOK, {'v', 'V'} }, 205 { 'B', CAPLOK, {'b', 'B'} }, 206 { 'N', CAPLOK, {'n', 'N'} }, 207 208 /* Specials */ 209 { VK_OEM_COMMA, 0, {',', ';'} }, 210 { VK_OEM_PERIOD, 0, {'.', ':'} }, 211 { VK_OEM_MINUS, 0, {'-', '_'} }, 212 { VK_DECIMAL, 0, {'.', '.'} }, 213 { VK_TAB, 0, {'\t', '\t'} }, 214 { VK_ADD, 0, {'+', '+'} }, 215 { VK_DIVIDE, 0, {0x2f, 0x2f} }, /* '/' */ 216 { VK_MULTIPLY, 0, {'*', '*'} }, 217 { VK_SUBTRACT, 0, {'-', '-'} }, 218 { 0, 0 } 219 }; 220 221 ROSDATA VK_TO_WCHARS3 key_to_chars_3mod[] = { 222 /* Normal, Shifted, Alt Gr */ 223 /* Legacy (telnet-style) ascii escapes */ 224 { VK_OEM_4, 0, {'\'' , '?' , WCH_DEAD} }, /* ' ? � */ 225 { 0xff, 0, {WCH_NONE, WCH_NONE, 0xb4} }, 226 { 'Q', CAPLOK, {'q', 'Q', '@'} }, 227 { 'C', CAPLOK, {'c', 'C', 0xa9} }, /* c C Copyright-Sign */ 228 { 'E', CAPLOK, {'e', 'E', 0x20ac} }, /* e E � */ 229 { 'M', CAPLOK, {'m', 'M', 0xb5} }, /* m M mu-Sign */ 230 { VK_OEM_102, 0, {'<', '>', '\\'} }, 231 { 0,0 } 232 }; 233 234 ROSDATA VK_TO_WCHARS4 key_to_chars_4mod[] = { 235 /* Normal, Shifted, Alt Gr, C-S-x */ 236 /* Legacy Ascii generators */ 237 { VK_BACK, 0, {'\b', '\b', WCH_NONE, 0x7f} }, 238 { VK_ESCAPE, 0, {0x1b, 0x1b, WCH_NONE, 0x1b} }, 239 { VK_RETURN, 0, {'\r', '\r', WCH_NONE, '\n'} }, 240 { VK_SPACE, 0, {' ', ' ', WCH_NONE, ' '} }, 241 { VK_CANCEL, 0, {0x03, 0x03, WCH_NONE, 0x03} }, 242 { 0, 0 } 243 }; 244 245 ROSDATA VK_TO_WCHARS5 key_to_chars_5mod[] = { 246 /* Normal, Shifted, Alt Gr, Ctrl */ 247 { '1', 0, {'1', '+', '|', WCH_NONE, 0x00} }, 248 { '2', 0, {'2', '\"', '@', WCH_NONE, 0x00} }, 249 { '3', 0, {'3', '*', '#', WCH_NONE, 0x00} }, 250 { '6', 0, {'6', '&', 0xac, WCH_NONE, 0x00} }, 251 { '7', 0, {'7', '/', 0xa6, WCH_NONE, 0x00} }, 252 { '8', 0, {'8', '(', 0xa2, WCH_NONE, 0x00} }, 253 { VK_OEM_1, KBDCTRL, {0xfc, 0xe8, 0x5b, 0Xdc, 0xc8} }, /* � � [ � � */ 254 { VK_OEM_2, 0, {0x24, 0xa3, 0x7d, WCH_NONE, 0x00} }, /* $ � } */ 255 { VK_OEM_3, KBDCTRL, {0xf6, 0xe9, WCH_NONE, 0xd6, 0xc9} }, /* � � � �*/ 256 { VK_OEM_6, 0, {WCH_DEAD, WCH_DEAD, WCH_DEAD, WCH_NONE, 0x00} }, /* ^ ` ~ */ 257 { 0xff, 0, {0x5e , 0x27 , 0x7e , WCH_NONE, 0x00} }, 258 { VK_OEM_7, KBDCTRL, {0xe4, 0xe0, 0x7b, 0xc4, 0xc0} }, /* � � { � � */ 259 { VK_OEM_PLUS, 0, {WCH_DEAD, 0x21 , 0x5D , WCH_NONE, 0x00} }, /* � ! ] */ 260 { 0xff, 0, {0xa8 , WCH_NONE, WCH_NONE, WCH_NONE, 0x00} }, 261 { 0, 0 } 262 }; 263 264 ROSDATA VK_TO_WCHARS1 keypad_numbers[] = { 265 { VK_DECIMAL, 0, {'.'} }, /* I have no idea why this has to be like this. Shouldn't it be a "."? */ 266 { VK_NUMPAD0, 0, {'0'} }, 267 { VK_NUMPAD1, 0, {'1'} }, 268 { VK_NUMPAD2, 0, {'2'} }, 269 { VK_NUMPAD3, 0, {'3'} }, 270 { VK_NUMPAD4, 0, {'4'} }, 271 { VK_NUMPAD5, 0, {'5'} }, 272 { VK_NUMPAD6, 0, {'6'} }, 273 { VK_NUMPAD7, 0, {'7'} }, 274 { VK_NUMPAD8, 0, {'8'} }, 275 { VK_NUMPAD9, 0, {'9'} }, 276 // { VK_BACK, 0, '\010' }, 277 { 0,0 } 278 }; 279 280 #define vk_master(n,x) { (PVK_TO_WCHARS1)x, n, sizeof(x[0]) } 281 282 ROSDATA VK_TO_WCHAR_TABLE vk_to_wchar_master_table[] = { 283 vk_master(3,key_to_chars_3mod), 284 vk_master(4,key_to_chars_4mod), 285 vk_master(5,key_to_chars_5mod), 286 vk_master(2,key_to_chars_2mod), 287 vk_master(1,keypad_numbers), 288 { 0,0,0 } 289 }; 290 291 ROSDATA VSC_LPWSTR key_names[] = { 292 { 0x00, L"" }, 293 { 0x01, L"Esc" }, 294 { 0x0e, L"R\x00fc" L"ck" }, 295 { 0x0f, L"Tabulator" }, 296 { 0x1c, L"Eingabe" }, 297 { 0x1d, L"Ctrl" }, 298 { 0x2a, L"Umschalt Links" }, 299 { 0x36, L"Umschalt Rechts" }, 300 { 0x37, L" (Zehnertastatur)" }, 301 { 0x38, L"Alt" }, 302 { 0x39, L"Leer" }, 303 { 0x3a, L"CAPLOK Lock" }, 304 { 0x3b, L"F1" }, 305 { 0x3c, L"F2" }, 306 { 0x3d, L"F3" }, 307 { 0x3e, L"F4" }, 308 { 0x3f, L"F5" }, 309 { 0x40, L"F6" }, 310 { 0x41, L"F7" }, 311 { 0x42, L"F8" }, 312 { 0x43, L"F9" }, 313 { 0x44, L"F10" }, 314 { 0x45, L"Pause" }, 315 { 0x46, L"Rollen-Feststell" }, 316 { 0x47, L"7 (Zehnertastatur)" }, 317 { 0x48, L"8 (Zehnertastatur)" }, 318 { 0x49, L"9 (Zehnertastatur)" }, 319 { 0x4a, L"- (Zehnertastatur)" }, 320 { 0x4b, L"4 (Zehnertastatur)" }, 321 { 0x4c, L"5 (Zehnertastatur)" }, 322 { 0x4d, L"6 (Zehnertastatur)" }, 323 { 0x4e, L"+ (Zehnertastatur)" }, 324 { 0x4f, L"1 (Zehnertastatur)" }, 325 { 0x50, L"2 (Zehnertastatur)" }, 326 { 0x51, L"3 (Zehnertastatur)" }, 327 { 0x52, L"0 (Zehnertastatur)" }, 328 { 0x53, L"Punkt (Zehnertastatur)" }, 329 { 0x54, L"Sys Req" }, 330 { 0x57, L"F11" }, 331 { 0x58, L"F12" }, 332 { 0x7c, L"F13" }, 333 { 0x7d, L"F14" }, 334 { 0x7e, L"F15" }, 335 { 0x7f, L"F16" }, 336 { 0x80, L"F17" }, 337 { 0x81, L"F18" }, 338 { 0x82, L"F19" }, 339 { 0x83, L"F20" }, 340 { 0x84, L"F21" }, 341 { 0x85, L"F22" }, 342 { 0x86, L"F23" }, 343 { 0x87, L"F24" }, 344 { 0, NULL }, 345 }; 346 347 ROSDATA VSC_LPWSTR extended_key_names[] = { 348 { 0x1c, L"Eingabe (Zehnertastatur" }, 349 { 0x1d, L"Strg-Rechts" }, 350 { 0x35, L" (Zehnertastatur)" }, 351 { 0x37, L"Druck" }, 352 { 0x38, L"Alt Gr" }, 353 { 0x45, L"Num-Feststell" }, 354 { 0x46, L"Untbr" }, 355 { 0x47, L"Pos1" }, 356 { 0x48, L"Nach-Oben" }, 357 { 0x49, L"Bild-Nach-Oben" }, 358 { 0x4b, L"Nach-Links" }, 359 //{ 0x4c, L"Center" }, 360 { 0x4d, L"Nach-Rechts" }, 361 { 0x4f, L"Ende" }, 362 { 0x50, L"Nach-Unten" }, 363 { 0x51, L"Bild-Nach-Unten" }, 364 { 0x52, L"Einfg" }, 365 { 0x53, L"Entf" }, 366 { 0x54, L"<ReactOS>" }, 367 { 0x55, L"Hilfe" }, 368 { 0x56, L"Linke <ReactOS>" }, 369 { 0x5b, L"Rechte <ReactOS>" }, 370 { 0, NULL }, 371 }; 372 373 ROSDATA DEADKEY_LPWSTR dead_key_names[] = { 374 L"\x00b4" L"Akut", 375 L"`" L"Gravis", 376 L"^" L"Zirkumflex", 377 NULL 378 }; 379 380 #define DEADTRANS(ch, accent, comp, flags) MAKELONG(ch, accent), comp, flags 381 382 ROSDATA DEADKEY dead_key[] = { 383 { DEADTRANS(L'a', L'^', 0xe2, 0x00) },/* ^ */ 384 { DEADTRANS(L'e', L'^', 0xea, 0x00) }, 385 { DEADTRANS(L'i', L'^', 0xee, 0x00) }, 386 { DEADTRANS(L'o', L'^', 0xf4, 0x00) }, 387 { DEADTRANS(L'u', L'^', 0xfb, 0x00) }, 388 { DEADTRANS(L'A', L'^', 0xc2, 0x00) }, 389 { DEADTRANS(L'E', L'^', 0xca, 0x00) }, 390 { DEADTRANS(L'I', L'^', 0xce, 0x00) }, 391 { DEADTRANS(L'O', L'^', 0xd4, 0x00) }, 392 { DEADTRANS(L'U', L'^', 0xdb, 0x00) }, 393 { DEADTRANS(L' ', L'^', L'^', 0x00) }, 394 { DEADTRANS(L'a', 0xb4, 0xe1, 0x00) }, /* � */ 395 { DEADTRANS(L'e', 0xb4, 0xe9, 0x00) }, 396 { DEADTRANS(L'i', 0xb4, 0xed, 0x00) }, 397 { DEADTRANS(L'o', 0xb4, 0xf3, 0x00) }, 398 { DEADTRANS(L'u', 0xb4, 0xfa, 0x00) }, 399 { DEADTRANS(L'y', 0xb4, 0xfd, 0x00) }, 400 { DEADTRANS(L'A', 0xb4, 0xc1, 0x00) }, 401 { DEADTRANS(L'E', 0xb4, 0xc9, 0x00) }, 402 { DEADTRANS(L'I', 0xb4, 0xcd, 0x00) }, 403 { DEADTRANS(L'O', 0xb4, 0xd3, 0x00) }, 404 { DEADTRANS(L'U', 0xb4, 0xda, 0x00) }, 405 { DEADTRANS(L'Y', 0xb4, 0xdd, 0x00) }, 406 { DEADTRANS(L' ', 0xb4, 0xb4, 0x00) }, 407 { DEADTRANS(L'a', L'`', 0xe0, 0x00) }, /* ` */ 408 { DEADTRANS(L'e', L'`', 0xe8, 0x00) }, 409 { DEADTRANS(L'i', L'`', 0xec, 0x00) }, 410 { DEADTRANS(L'o', L'`', 0xf2, 0x00) }, 411 { DEADTRANS(L'u', L'`', 0xf9, 0x00) }, 412 { DEADTRANS(L'A', L'`', 0xc0, 0x00) }, 413 { DEADTRANS(L'E', L'`', 0xc8, 0x00) }, 414 { DEADTRANS(L'I', L'`', 0xcc, 0x00) }, 415 { DEADTRANS(L'O', L'`', 0xd2, 0x00) }, 416 { DEADTRANS(L'U', L'`', 0xd9, 0x00) }, 417 { DEADTRANS(L' ', L'`', L'`', 0x00) }, 418 { DEADTRANS(L' ', 0xa8, 0xa8, 0x00) }, /* � */ 419 { DEADTRANS(L'a', 0xa8, 0xe4, 0x00) }, 420 { DEADTRANS(L'e', 0xa8, 0xeb, 0x00) }, 421 { DEADTRANS(L'i', 0xa8, 0xef, 0x00) }, 422 { DEADTRANS(L'o', 0xa8, 0xf6, 0x00) }, 423 { DEADTRANS(L'u', 0xa8, 0xfc, 0x00) }, 424 { DEADTRANS(L'y', 0xa8, 0xff, 0x00) }, 425 { DEADTRANS(L'A', 0xa8, 0xc4, 0x00) }, 426 { DEADTRANS(L'E', 0xa8, 0xcb, 0x00) }, 427 { DEADTRANS(L'I', 0xa8, 0xcf, 0x00) }, 428 { DEADTRANS(L'O', 0xa8, 0xd6, 0x00) }, 429 { DEADTRANS(L'U', 0xa8, 0xdc, 0x00) }, 430 { DEADTRANS(L' ', 0x7e, 0x7e, 0x00) }, /* ~ */ 431 { DEADTRANS(L'a', 0x7e, 0xe3, 0x00) }, 432 { DEADTRANS(L'o', 0x7e, 0xf5, 0x00) }, 433 { DEADTRANS(L'n', 0x7e, 0xf1, 0x00) }, 434 { DEADTRANS(L'A', 0x7e, 0xc3, 0x00) }, 435 { DEADTRANS(L'O', 0x7e, 0xd5, 0x00) }, 436 { DEADTRANS(L'N', 0x7e, 0xd1, 0x00) }, 437 { 0, 0 } 438 }; 439 440 /* Finally, the master table */ 441 ROSDATA KBDTABLES keyboard_layout_table = { 442 /* modifier assignments */ 443 &modifier_bits, 444 445 /* character from vk tables */ 446 vk_to_wchar_master_table, 447 448 /* diacritical marks -- currently implemented by wine code */ 449 dead_key, 450 451 /* Key names */ 452 (VSC_LPWSTR *)key_names, 453 (VSC_LPWSTR *)extended_key_names, 454 dead_key_names, /* Dead key names */ 455 456 /* scan code to virtual key maps */ 457 scancode_to_vk, 458 RTL_NUMBER_OF(scancode_to_vk), 459 extcode0_to_vk, 460 extcode1_to_vk, 461 462 MAKELONG(KLLF_ALTGR, 1), /* Version 1.0 */ 463 464 /* Ligatures -- German doesn't have any */ 465 0, 466 0, 467 NULL 468 }; 469 470 PKBDTABLES WINAPI KbdLayerDescriptor(VOID) { 471 return &keyboard_layout_table; 472 } 473 474