1 /* 2 * ReactOS French (Switzerland) ASCII Keyboard layout 3 * Copyright (C) 2020 ReactOS 4 * Author: David Abelenda <abelendadavid@msn.com> 5 * License: LGPL, see: LGPL.txt 6 * 7 * Thanks to: 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 VK_EMPTY, 103 /* - 80 - */ 104 0 105 }; 106 107 ROSDATA VSC_VK extcode0_to_vk[] = { 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 149 ROSDATA VSC_VK extcode1_to_vk[] = { 150 { 0x1d, VK_PAUSE}, 151 { 0, 0 }, 152 }; 153 154 ROSDATA VK_TO_BIT modifier_keys[] = { 155 { VK_SHIFT, KBDSHIFT }, 156 { VK_CONTROL, KBDCTRL }, 157 { VK_MENU, KBDALT }, 158 { 0, 0 } 159 }; 160 161 ROSDATA MODIFIERS modifier_bits = { 162 modifier_keys, 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 { '4', 0, {'4', 0xe7, 0xB0, WCH_NONE, 0x00} }, 254 { '5', 0, {'5', '%', 0xa7, WCH_NONE, 0x00} }, 255 { '6', 0, {'6', '&', 0xac, WCH_NONE, 0x00} }, 256 { '7', 0, {'7', '/', 0xa6, WCH_NONE, 0x00} }, 257 { '8', 0, {'8', '(', 0xa2, WCH_NONE, 0x00} }, 258 { '9', 0, {'9', ')', WCH_NONE, WCH_NONE, 0x00} }, 259 { VK_OEM_1, KBDCTRL, {0xe8, 0xfc, 0x5b, 0Xdc, 0xc8} }, /* � � [ � � */ 260 { VK_OEM_2, 0, {0x24, 0xa3, 0x7d, WCH_NONE, 0x00} }, /* $ � } */ 261 { VK_OEM_3, KBDCTRL, {0xe9, 0xf6, WCH_NONE, 0xd6, 0xc9} }, /* � � � �*/ 262 { VK_OEM_6, 0, {WCH_DEAD, WCH_DEAD, WCH_DEAD, WCH_NONE, 0x00} }, /* ^ ` ~ */ 263 { 0xff, 0, {0x5e , 0x27 , 0x7e , WCH_NONE, 0x00} }, 264 { VK_OEM_7, KBDCTRL, {0xe0, 0xe4, 0x7b, 0xc4, 0xc0} }, /* � � { � � */ 265 { VK_OEM_PLUS, 0, {WCH_DEAD, 0x21 , 0x5D , WCH_NONE, 0x00} }, /* � ! ] */ 266 { 0xff, 0, {0xa8 , WCH_NONE, WCH_NONE, WCH_NONE, 0x00} }, 267 { 0, 0 } 268 }; 269 270 ROSDATA VK_TO_WCHARS1 keypad_numbers[] = { 271 { VK_NUMPAD0, 0, {'0'} }, 272 { VK_NUMPAD1, 0, {'1'} }, 273 { VK_NUMPAD2, 0, {'2'} }, 274 { VK_NUMPAD3, 0, {'3'} }, 275 { VK_NUMPAD4, 0, {'4'} }, 276 { VK_NUMPAD5, 0, {'5'} }, 277 { VK_NUMPAD6, 0, {'6'} }, 278 { VK_NUMPAD7, 0, {'7'} }, 279 { VK_NUMPAD8, 0, {'8'} }, 280 { VK_NUMPAD9, 0, {'9'} }, 281 { VK_DECIMAL, 0, {'.'} }, 282 { VK_BACK, 0, {'\010'} }, 283 { 0,0 } 284 }; 285 286 #define vk_master(n,x) { (PVK_TO_WCHARS1)x, n, sizeof(x[0]) } 287 288 ROSDATA VK_TO_WCHAR_TABLE vk_to_wchar_master_table[] = { 289 vk_master(3,key_to_chars_3mod), 290 vk_master(4,key_to_chars_4mod), 291 vk_master(5,key_to_chars_5mod), 292 vk_master(2,key_to_chars_2mod), 293 vk_master(1,keypad_numbers), 294 { 0,0,0 } 295 }; 296 297 ROSDATA VSC_LPWSTR key_names[] = { 298 { 0x00, L"" }, 299 { 0x01, L"Esc" }, 300 { 0x0e, L"R\x00fc" L"ck" }, 301 { 0x0f, L"Tabulator" }, 302 { 0x1c, L"Entrée" }, 303 { 0x1d, L"Ctrl" }, 304 { 0x2a, L"Majuscule gauche" }, 305 { 0x36, L"Majuscule droite" }, 306 { 0x37, L" (Clavier numérique)" }, 307 { 0x38, L"Alt" }, 308 { 0x39, L"Vide" }, 309 { 0x3a, L"CAPSLOK" }, 310 { 0x3b, L"F1" }, 311 { 0x3c, L"F2" }, 312 { 0x3d, L"F3" }, 313 { 0x3e, L"F4" }, 314 { 0x3f, L"F5" }, 315 { 0x40, L"F6" }, 316 { 0x41, L"F7" }, 317 { 0x42, L"F8" }, 318 { 0x43, L"F9" }, 319 { 0x44, L"F10" }, 320 { 0x45, L"Pause" }, 321 { 0x46, L"Verrouillage du défilement" }, 322 { 0x47, L"7 (Clavier numérique)" }, 323 { 0x48, L"8 (Clavier numérique)" }, 324 { 0x49, L"9 (Clavier numérique)" }, 325 { 0x4a, L"- (Clavier numérique)" }, 326 { 0x4b, L"4 (Clavier numérique)" }, 327 { 0x4c, L"5 (Clavier numérique)" }, 328 { 0x4d, L"6 (Clavier numérique)" }, 329 { 0x4e, L"+ (Clavier numérique)" }, 330 { 0x4f, L"1 (Clavier numérique)" }, 331 { 0x50, L"2 (Clavier numérique)" }, 332 { 0x51, L"3 (Clavier numérique)" }, 333 { 0x52, L"0 (Clavier numérique)" }, 334 { 0x53, L"Point (Clavier numérique)" }, 335 { 0x54, L"Sys Req" }, 336 { 0x57, L"F11" }, 337 { 0x58, L"F12" }, 338 { 0x7c, L"F13" }, 339 { 0x7d, L"F14" }, 340 { 0x7e, L"F15" }, 341 { 0x7f, L"F16" }, 342 { 0x80, L"F17" }, 343 { 0x81, L"F18" }, 344 { 0x82, L"F19" }, 345 { 0x83, L"F20" }, 346 { 0x84, L"F21" }, 347 { 0x85, L"F22" }, 348 { 0x86, L"F23" }, 349 { 0x87, L"F24" }, 350 { 0, NULL }, 351 }; 352 353 ROSDATA VSC_LPWSTR extended_key_names[] = { 354 { 0x1c, L"Num Enter" }, 355 { 0x1d, L"Right Ctrl" }, 356 { 0x35, L"Num /" }, 357 { 0x37, L"Prnt Scrn" }, 358 { 0x38, L"Right Alt" }, 359 { 0x45, L"Num Lock" }, 360 { 0x46, L"Break" }, 361 { 0x47, L"Home" }, 362 { 0x48, L"Up" }, 363 { 0x49, L"Page Up" }, 364 { 0x4a, L"Left" }, 365 { 0x4c, L"Center" }, 366 { 0x4d, L"Right" }, 367 { 0x4f, L"End" }, 368 { 0x50, L"Down" }, 369 { 0x51, L"Page Down" }, 370 { 0x52, L"Insert" }, 371 { 0x53, L"Delete" }, 372 { 0x54, L"<ReactOS>" }, 373 { 0x55, L"Help" }, 374 { 0x56, L"Left Windows" }, 375 { 0x5b, L"Right Windows" }, 376 { 0, NULL }, 377 }; 378 379 ROSDATA DEADKEY_LPWSTR dead_key_names[] = { 380 L"\x00b4" L"Aigu", 381 L"`" L"Grave", 382 L"^" L"Circonflex", 383 NULL 384 }; 385 386 #define DEADTRANS(ch, accent, comp, flags) MAKELONG(ch, accent), comp, flags 387 388 ROSDATA DEADKEY dead_key[] = { 389 { DEADTRANS(L'a', L'^', 0xe2, 0x00) },/* ^ */ 390 { DEADTRANS(L'e', L'^', 0xea, 0x00) }, 391 { DEADTRANS(L'i', L'^', 0xee, 0x00) }, 392 { DEADTRANS(L'o', L'^', 0xf4, 0x00) }, 393 { DEADTRANS(L'u', L'^', 0xfb, 0x00) }, 394 { DEADTRANS(L'A', L'^', 0xc2, 0x00) }, 395 { DEADTRANS(L'E', L'^', 0xca, 0x00) }, 396 { DEADTRANS(L'I', L'^', 0xce, 0x00) }, 397 { DEADTRANS(L'O', L'^', 0xd4, 0x00) }, 398 { DEADTRANS(L'U', L'^', 0xdb, 0x00) }, 399 { DEADTRANS(L' ', L'^', L'^', 0x00) }, 400 { DEADTRANS(L'a', 0xb4, 0xe1, 0x00) }, /* � */ 401 { DEADTRANS(L'e', 0xb4, 0xe9, 0x00) }, 402 { DEADTRANS(L'i', 0xb4, 0xed, 0x00) }, 403 { DEADTRANS(L'o', 0xb4, 0xf3, 0x00) }, 404 { DEADTRANS(L'u', 0xb4, 0xfa, 0x00) }, 405 { DEADTRANS(L'y', 0xb4, 0xfd, 0x00) }, 406 { DEADTRANS(L'A', 0xb4, 0xc1, 0x00) }, 407 { DEADTRANS(L'E', 0xb4, 0xc9, 0x00) }, 408 { DEADTRANS(L'I', 0xb4, 0xcd, 0x00) }, 409 { DEADTRANS(L'O', 0xb4, 0xd3, 0x00) }, 410 { DEADTRANS(L'U', 0xb4, 0xda, 0x00) }, 411 { DEADTRANS(L'Y', 0xb4, 0xdd, 0x00) }, 412 { DEADTRANS(L' ', 0xb4, 0xb4, 0x00) }, 413 { DEADTRANS(L'a', L'`', 0xe0, 0x00) }, /* ` */ 414 { DEADTRANS(L'e', L'`', 0xe8, 0x00) }, 415 { DEADTRANS(L'i', L'`', 0xec, 0x00) }, 416 { DEADTRANS(L'o', L'`', 0xf2, 0x00) }, 417 { DEADTRANS(L'u', L'`', 0xf9, 0x00) }, 418 { DEADTRANS(L'A', L'`', 0xc0, 0x00) }, 419 { DEADTRANS(L'E', L'`', 0xc8, 0x00) }, 420 { DEADTRANS(L'I', L'`', 0xcc, 0x00) }, 421 { DEADTRANS(L'O', L'`', 0xd2, 0x00) }, 422 { DEADTRANS(L'U', L'`', 0xd9, 0x00) }, 423 { DEADTRANS(L' ', L'`', L'`', 0x00) }, 424 { DEADTRANS(L' ', 0xa8, 0xa8, 0x00) }, /* � */ 425 { DEADTRANS(L'a', 0xa8, 0xe4, 0x00) }, 426 { DEADTRANS(L'e', 0xa8, 0xeb, 0x00) }, 427 { DEADTRANS(L'i', 0xa8, 0xef, 0x00) }, 428 { DEADTRANS(L'o', 0xa8, 0xf6, 0x00) }, 429 { DEADTRANS(L'u', 0xa8, 0xfc, 0x00) }, 430 { DEADTRANS(L'y', 0xa8, 0xff, 0x00) }, 431 { DEADTRANS(L'A', 0xa8, 0xc4, 0x00) }, 432 { DEADTRANS(L'E', 0xa8, 0xcb, 0x00) }, 433 { DEADTRANS(L'I', 0xa8, 0xcf, 0x00) }, 434 { DEADTRANS(L'O', 0xa8, 0xd6, 0x00) }, 435 { DEADTRANS(L'U', 0xa8, 0xdc, 0x00) }, 436 { DEADTRANS(L' ', 0x7e, 0x7e, 0x00) }, /* ~ */ 437 { DEADTRANS(L'a', 0x7e, 0xe3, 0x00) }, 438 { DEADTRANS(L'o', 0x7e, 0xf5, 0x00) }, 439 { DEADTRANS(L'n', 0x7e, 0xf1, 0x00) }, 440 { DEADTRANS(L'A', 0x7e, 0xc3, 0x00) }, 441 { DEADTRANS(L'O', 0x7e, 0xd5, 0x00) }, 442 { DEADTRANS(L'N', 0x7e, 0xd1, 0x00) }, 443 { 0, 0 } 444 }; 445 446 /* Finally, the master table */ 447 ROSDATA KBDTABLES keyboard_layout_table = { 448 /* modifier assignments */ 449 &modifier_bits, 450 451 /* character from vk tables */ 452 vk_to_wchar_master_table, 453 454 /* diacritical marks -- currently implemented by wine code */ 455 dead_key, 456 457 /* Key names */ 458 (VSC_LPWSTR *)key_names, 459 (VSC_LPWSTR *)extended_key_names, 460 dead_key_names, /* Dead key names */ 461 462 /* scan code to virtual key maps */ 463 scancode_to_vk, 464 sizeof(scancode_to_vk) / sizeof(scancode_to_vk[0]), 465 extcode0_to_vk, 466 extcode1_to_vk, 467 468 MAKELONG(KLLF_ALTGR, 1), /* Version 1.0 */ 469 470 /* Ligatures -- German doesn't have any */ 471 0, 472 0, 473 NULL 474 }; 475 476 PKBDTABLES WINAPI KbdLayerDescriptor(VOID) { 477 return &keyboard_layout_table; 478 } 479 480