1c2c66affSColin Finck /*
2c2c66affSColin Finck * Belgian (point) Keyboard layout
3c2c66affSColin Finck * Copyright (C) 2005 ReactOS Development Team
4c2c66affSColin Finck * Autor: i386DX
5c2c66affSColin Finck */
6c2c66affSColin Finck
7c2c66affSColin Finck /* ToDo - ToFix
8c2c66affSColin Finck * Dead keys
9c2c66affSColin Finck */
10c2c66affSColin Finck
11c2c66affSColin Finck #define WIN32_NO_STATUS
12c2c66affSColin Finck #include <stdarg.h>
13c2c66affSColin Finck #include <windef.h>
14c2c66affSColin Finck #include <winuser.h>
15c2c66affSColin Finck #include <ndk/kbd.h>
16c2c66affSColin Finck
17c2c66affSColin Finck #ifdef _M_IA64
18c2c66affSColin Finck #define ROSDATA static __declspec(allocate(".data"))
19c2c66affSColin Finck #else
20c2c66affSColin Finck #ifdef _MSC_VER
21c2c66affSColin Finck #pragma data_seg(".data")
22c2c66affSColin Finck #define ROSDATA static
23c2c66affSColin Finck #else
24c2c66affSColin Finck #define ROSDATA static __attribute__((section(".data")))
25c2c66affSColin Finck #endif
26c2c66affSColin Finck #endif
27c2c66affSColin Finck
28c2c66affSColin Finck #define VK_EMPTY 0xff /* The non-existent VK */
29c2c66affSColin Finck
30c2c66affSColin Finck #define KNUMS KBDNUMPAD|KBDSPECIAL /* Special + number pad */
31c2c66affSColin Finck #define KMEXT KBDEXT|KBDMULTIVK /* Multi + ext */
32c2c66affSColin Finck
33c2c66affSColin Finck ROSDATA USHORT scancode_to_vk[] = {
34c2c66affSColin Finck /* Numbers Row */
35c2c66affSColin Finck /* - 00 - */
36c2c66affSColin Finck /* 1 ... 2 ... 3 ... 4 ... */
37c2c66affSColin Finck VK_EMPTY, VK_ESCAPE, '1', '2',
38c2c66affSColin Finck '3', '4', '5', '6',
39c2c66affSColin Finck '7', '8', '9', '0',
40c2c66affSColin Finck VK_OEM_2, VK_OEM_MINUS, VK_BACK,
41c2c66affSColin Finck /* - 0f - */
42c2c66affSColin Finck /* First Letters Row */
43c2c66affSColin Finck VK_TAB, 'A', 'Z', 'E',
44c2c66affSColin Finck 'R', 'T', 'Y', 'U',
45c2c66affSColin Finck 'I', 'O', 'P', VK_OEM_4,
46c2c66affSColin Finck VK_OEM_6, VK_RETURN,
47c2c66affSColin Finck /* - 1d - */
48c2c66affSColin Finck /* Second Letters Row */
49c2c66affSColin Finck VK_LCONTROL,
50c2c66affSColin Finck 'Q', 'S', 'D', 'F',
51c2c66affSColin Finck 'G', 'H', 'J', 'K',
52c2c66affSColin Finck 'L', 'M', VK_OEM_7, VK_OEM_3,
53c2c66affSColin Finck VK_LSHIFT, VK_OEM_5,
54c2c66affSColin Finck /* - 2c - */
55c2c66affSColin Finck /* Third letters row */
56c2c66affSColin Finck 'W', 'X', 'C', 'V',
57c2c66affSColin Finck 'B', 'N', VK_OEM_COMMA, VK_OEM_PERIOD,
58c2c66affSColin Finck VK_OEM_1, VK_OEM_PLUS, VK_RSHIFT,
59c2c66affSColin Finck /* - 37 - */
60c2c66affSColin Finck /* Bottom Row */
61c2c66affSColin Finck VK_MULTIPLY, VK_LMENU, VK_SPACE, VK_CAPITAL,
62c2c66affSColin Finck /* - 3b - */
63c2c66affSColin Finck /* F-Keys */
64c2c66affSColin Finck VK_F1, VK_F2, VK_F3, VK_F4, VK_F5, VK_F6,
65c2c66affSColin Finck VK_F7, VK_F8, VK_F9, VK_F10,
66c2c66affSColin Finck /* - 45 - */
67c2c66affSColin Finck /* Locks */
68c2c66affSColin Finck VK_NUMLOCK | KMEXT,
69c2c66affSColin Finck VK_SCROLL | KBDMULTIVK,
70c2c66affSColin Finck /* - 47 - */
71c2c66affSColin Finck /* Number-Pad */
72c2c66affSColin Finck VK_HOME | KNUMS, VK_UP | KNUMS, VK_PRIOR | KNUMS, VK_SUBTRACT,
73c2c66affSColin Finck VK_LEFT | KNUMS, VK_CLEAR | KNUMS, VK_RIGHT | KNUMS, VK_ADD,
74c2c66affSColin Finck VK_END | KNUMS, VK_DOWN | KNUMS, VK_NEXT | KNUMS,
75c2c66affSColin Finck VK_INSERT | KNUMS, VK_DELETE | KNUMS,
76c2c66affSColin Finck /* - 54 - */
77c2c66affSColin Finck /* Presumably PrtSc */
78c2c66affSColin Finck VK_SNAPSHOT,
79c2c66affSColin Finck /* - 55 - */
80c2c66affSColin Finck /* Oddities, and the remaining standard F-Keys */
81c2c66affSColin Finck VK_EMPTY, VK_OEM_102, VK_F11, VK_F12,
82c2c66affSColin Finck /* - 59 - */
83c2c66affSColin Finck VK_CLEAR, VK_EMPTY, VK_EMPTY, VK_EMPTY, VK_EMPTY, /* EREOF */
84c2c66affSColin Finck VK_EMPTY, VK_EMPTY, VK_EMPTY, VK_EMPTY, VK_EMPTY, /* ZOOM */
85c2c66affSColin Finck VK_HELP,
86c2c66affSColin Finck /* - 64 - */
87c2c66affSColin Finck /* Even more F-Keys (for example, NCR keyboards from the early 90's) */
88c2c66affSColin Finck VK_F13, VK_F14, VK_F15, VK_F16, VK_F17, VK_F18, VK_F19, VK_F20,
89c2c66affSColin Finck VK_F21, VK_F22, VK_F23,
90c2c66affSColin Finck /* - 6f - */
91c2c66affSColin Finck /* Not sure who uses these codes */
92c2c66affSColin Finck VK_EMPTY, VK_EMPTY, VK_EMPTY,
93c2c66affSColin Finck /* - 72 - */
94c2c66affSColin Finck VK_EMPTY, VK_EMPTY, VK_EMPTY, VK_EMPTY,
95c2c66affSColin Finck /* - 76 - */
96c2c66affSColin Finck /* One more f-key */
97c2c66affSColin Finck VK_F24,
98c2c66affSColin Finck /* - 77 - */
99c2c66affSColin Finck VK_EMPTY, VK_EMPTY, VK_EMPTY, VK_EMPTY,
100c2c66affSColin Finck VK_EMPTY, VK_EMPTY, VK_EMPTY, VK_EMPTY, /* PA1 */
101c2c66affSColin Finck };
102c2c66affSColin Finck
103c2c66affSColin Finck ROSDATA VSC_VK extcode0_to_vk[] = {
104c2c66affSColin Finck { 0x10, VK_MEDIA_PREV_TRACK | KBDEXT },
105c2c66affSColin Finck { 0x19, VK_MEDIA_NEXT_TRACK | KBDEXT },
106c2c66affSColin Finck { 0x1D, VK_RCONTROL | KBDEXT },
107c2c66affSColin Finck { 0x20, VK_VOLUME_MUTE | KBDEXT },
108c2c66affSColin Finck { 0x21, VK_LAUNCH_APP2 | KBDEXT },
109c2c66affSColin Finck { 0x22, VK_MEDIA_PLAY_PAUSE | KBDEXT },
110c2c66affSColin Finck { 0x24, VK_MEDIA_STOP | KBDEXT },
111c2c66affSColin Finck { 0x2E, VK_VOLUME_DOWN | KBDEXT },
112c2c66affSColin Finck { 0x30, VK_VOLUME_UP | KBDEXT },
113c2c66affSColin Finck { 0x32, VK_BROWSER_HOME | KBDEXT },
114c2c66affSColin Finck { 0x35, VK_DIVIDE | KBDEXT },
115c2c66affSColin Finck { 0x37, VK_SNAPSHOT | KBDEXT },
116c2c66affSColin Finck { 0x38, VK_RMENU | KBDEXT },
117c2c66affSColin Finck { 0x47, VK_HOME | KBDEXT },
118c2c66affSColin Finck { 0x48, VK_UP | KBDEXT },
119c2c66affSColin Finck { 0x49, VK_PRIOR | KBDEXT },
120c2c66affSColin Finck { 0x4B, VK_LEFT | KBDEXT },
121c2c66affSColin Finck { 0x4D, VK_RIGHT | KBDEXT },
122c2c66affSColin Finck { 0x4F, VK_END | KBDEXT },
123c2c66affSColin Finck { 0x50, VK_DOWN | KBDEXT },
124c2c66affSColin Finck { 0x51, VK_NEXT | KBDEXT },
125c2c66affSColin Finck { 0x52, VK_INSERT | KBDEXT },
126c2c66affSColin Finck { 0x53, VK_DELETE | KBDEXT },
127c2c66affSColin Finck { 0x5B, VK_LWIN | KBDEXT },
128c2c66affSColin Finck { 0x5C, VK_RWIN | KBDEXT },
129c2c66affSColin Finck { 0x5D, VK_APPS | KBDEXT },
130c2c66affSColin Finck { 0x5F, VK_SLEEP | KBDEXT },
131c2c66affSColin Finck { 0x65, VK_BROWSER_SEARCH | KBDEXT },
132c2c66affSColin Finck { 0x66, VK_BROWSER_FAVORITES | KBDEXT },
133c2c66affSColin Finck { 0x67, VK_BROWSER_REFRESH | KBDEXT },
134c2c66affSColin Finck { 0x68, VK_BROWSER_STOP | KBDEXT },
135c2c66affSColin Finck { 0x69, VK_BROWSER_FORWARD | KBDEXT },
136c2c66affSColin Finck { 0x6A, VK_BROWSER_BACK | KBDEXT },
137c2c66affSColin Finck { 0x6B, VK_LAUNCH_APP1 | KBDEXT },
138c2c66affSColin Finck { 0x6C, VK_LAUNCH_MAIL | KBDEXT },
139c2c66affSColin Finck { 0x6D, VK_LAUNCH_MEDIA_SELECT | KBDEXT },
140c2c66affSColin Finck { 0x1C, VK_RETURN | KBDEXT },
141c2c66affSColin Finck { 0x46, VK_CANCEL | KBDEXT },
142c2c66affSColin Finck { 0, 0 },
143c2c66affSColin Finck };
144c2c66affSColin Finck
145c2c66affSColin Finck ROSDATA VSC_VK extcode1_to_vk[] = {
146c2c66affSColin Finck { 0x1d, VK_PAUSE},
147c2c66affSColin Finck { 0, 0 },
148c2c66affSColin Finck };
149c2c66affSColin Finck
150c2c66affSColin Finck ROSDATA VK_TO_BIT modifier_keys[] = {
151c2c66affSColin Finck { VK_SHIFT, KBDSHIFT },
152c2c66affSColin Finck { VK_CONTROL, KBDCTRL },
153c2c66affSColin Finck { VK_MENU, KBDALT },
154c2c66affSColin Finck { 0, 0 }
155c2c66affSColin Finck };
156c2c66affSColin Finck
157c2c66affSColin Finck ROSDATA MODIFIERS modifier_bits = {
158c2c66affSColin Finck modifier_keys,
159c2c66affSColin Finck 6,
160c2c66affSColin Finck { 0, 1, 2, 4, SHFT_INVALID, SHFT_INVALID, 3 } /* Modifier bit order, NONE, SHIFT, CTRL, ALT, MENU, SHIFT + MENU, CTRL + MENU */
161c2c66affSColin Finck };
162c2c66affSColin Finck
163c2c66affSColin Finck ROSDATA VK_TO_WCHARS2 key_to_chars_2mod[] = {
164c2c66affSColin Finck /* Normal vs Shifted */
165c2c66affSColin Finck /* The numbers */
166c2c66affSColin Finck { '4', 0, {0x27, '4'} },
167c2c66affSColin Finck { '5', 0, {'(', '5'} },
168c2c66affSColin Finck { '7', 0, {0xE8, '7'} },
169c2c66affSColin Finck { '8', 0, {'!', '8'} },
170c2c66affSColin Finck { VK_OEM_2, 0, {')', 0xB0} },
171c2c66affSColin Finck
172c2c66affSColin Finck /* Specials */
173c2c66affSColin Finck { VK_OEM_COMMA, CAPLOK, {',', '?'} },
174c2c66affSColin Finck { VK_OEM_PERIOD, CAPLOK, {';', '.'} },
175c2c66affSColin Finck
176c2c66affSColin Finck { VK_OEM_1, CAPLOK, {':', '/'} },
177c2c66affSColin Finck { VK_OEM_3, 0, {0xB2, 0xB3 } },
178c2c66affSColin Finck { VK_DECIMAL, 0, {'.', '.'} },
179c2c66affSColin Finck { VK_TAB, 0, {'\t', '\t'} },
180c2c66affSColin Finck { VK_ADD, 0, {'+', '+'} },
181c2c66affSColin Finck { VK_DIVIDE, 0, {'/', '/'} },
182c2c66affSColin Finck { VK_MULTIPLY, 0, {'*', '*'} },
183c2c66affSColin Finck { VK_SUBTRACT, 0, {'-', '-'} },
184c2c66affSColin Finck { 0, 0 }
185c2c66affSColin Finck };
186c2c66affSColin Finck
187c2c66affSColin Finck ROSDATA VK_TO_WCHARS3 key_to_chars_3mod[] = {
188c2c66affSColin Finck /* Normal, Shifted, Ctrl */
189c2c66affSColin Finck
190c2c66affSColin Finck /* The alphabet */
191c2c66affSColin Finck { 'A', CAPLOK, {'a', 'A', 0x01} },
192c2c66affSColin Finck { 'B', CAPLOK, {'b', 'B', 0x02} },
193c2c66affSColin Finck { 'C', CAPLOK, {'c', 'C', 0x03} },
194c2c66affSColin Finck { 'D', CAPLOK, {'d', 'D', 0x04} },
195c2c66affSColin Finck { 'F', CAPLOK, {'f', 'F', 0x06} },
196c2c66affSColin Finck { 'G', CAPLOK, {'g', 'G', 0x07} },
197c2c66affSColin Finck { 'H', CAPLOK, {'h', 'H', 0x08} },
198c2c66affSColin Finck { 'I', CAPLOK, {'i', 'I', 0x09} },
199c2c66affSColin Finck { 'J', CAPLOK, {'j', 'J', 0x0a} },
200c2c66affSColin Finck { 'K', CAPLOK, {'k', 'K', 0x0b} },
201c2c66affSColin Finck { 'L', CAPLOK, {'l', 'L', 0x0c} },
202c2c66affSColin Finck { 'M', CAPLOK, {'m', 'M', 0x0d} },
203c2c66affSColin Finck { 'N', CAPLOK, {'n', 'N', 0x0e} },
204c2c66affSColin Finck { 'O', CAPLOK, {'o', 'O', 0x0f} },
205c2c66affSColin Finck { 'P', CAPLOK, {'p', 'P', 0x10} },
206c2c66affSColin Finck { 'Q', CAPLOK, {'q', 'Q', 0x11} },
207c2c66affSColin Finck { 'R', CAPLOK, {'r', 'R', 0x12} },
208c2c66affSColin Finck { 'S', CAPLOK, {'s', 'S', 0x13} },
209c2c66affSColin Finck { 'T', CAPLOK, {'t', 'T', 0x14} },
210c2c66affSColin Finck { 'U', CAPLOK, {'u', 'U', 0x15} },
211c2c66affSColin Finck { 'V', CAPLOK, {'v', 'V', 0x16} },
212c2c66affSColin Finck { 'W', CAPLOK, {'w', 'W', 0x17} },
213c2c66affSColin Finck { 'X', CAPLOK, {'x', 'X', 0x18} },
214c2c66affSColin Finck { 'Y', CAPLOK, {'y', 'Y', 0x19} },
215c2c66affSColin Finck { 'Z', CAPLOK, {'z', 'Z', 0x1a} },
216c2c66affSColin Finck /* Legacy (telnet-style) ascii escapes */
217c2c66affSColin Finck { VK_OEM_MINUS, 0, {'-', '_', 0x1f} }, //0x1f unit separator
218c2c66affSColin Finck { VK_RETURN, 0, {'\r', '\r', '\n'} },
219c2c66affSColin Finck
220c2c66affSColin Finck { VK_BACK, 0, {'\b', '\b', 0x7f} },
221c2c66affSColin Finck { VK_ESCAPE, 0, {0x1b, 0x1b, 0x1b} },
222c2c66affSColin Finck { VK_SPACE, 0, {' ', ' ', ' ' } },
223c2c66affSColin Finck { VK_CANCEL, 0, {0x03, 0x03, 0x03} },
224c2c66affSColin Finck { 0,0 }
225c2c66affSColin Finck };
226c2c66affSColin Finck
227c2c66affSColin Finck ROSDATA VK_TO_WCHARS4 key_to_chars_4mod[] = {
228c2c66affSColin Finck /* Normal, Shifted, Ctrl, Ctrl-Alt */
229c2c66affSColin Finck
230c2c66affSColin Finck /* Legacy Ascii generators */
231c2c66affSColin Finck { '1', 0, {'&', '1', WCH_NONE, '|' } },
232c2c66affSColin Finck { '2', 0, {0xE9, '2', WCH_NONE, '@' } },
233c2c66affSColin Finck { '3', 0, {'"', '3', WCH_NONE, '#' } },
234c2c66affSColin Finck { '6', 0, {0xA7, '6', WCH_NONE, WCH_DEAD} },
235c2c66affSColin Finck { '9', 0, {0xE7, '9', WCH_NONE, '{' } },
236c2c66affSColin Finck { '0', 0, {0xE0, '0', WCH_NONE, '}' } },
237c2c66affSColin Finck { VK_OEM_PLUS, 0, {'=', '+', WCH_NONE, WCH_DEAD} },
238c2c66affSColin Finck
239c2c66affSColin Finck { VK_OEM_4, 0, {WCH_DEAD, WCH_DEAD,WCH_NONE, '[' } },
240c2c66affSColin Finck { VK_OEM_5, CAPLOK, {0xB5, 0xA3, WCH_NONE, WCH_DEAD} },
241c2c66affSColin Finck { VK_OEM_6, 0, {'$', '*', WCH_NONE, ']' } },
242c2c66affSColin Finck { VK_OEM_7, 0, {0xF9, '%', WCH_NONE, WCH_DEAD} },
243c2c66affSColin Finck { VK_EMPTY , 0, {0xb4, '`', '|', WCH_NONE} },
244c2c66affSColin Finck
245c2c66affSColin Finck { 'E', CAPLOK, {'e', 'E', 0x05, 0x20ac} },
246c2c66affSColin Finck { VK_EMPTY , 0, {0xa8, '^', WCH_NONE, '~'} },
247c2c66affSColin Finck
248c2c66affSColin Finck { VK_OEM_102, 0, {'<', '>', 0x001c, '\\'} },
249c2c66affSColin Finck { 0, 0 }
250c2c66affSColin Finck };
251c2c66affSColin Finck
252c2c66affSColin Finck ROSDATA VK_TO_WCHARS5 key_to_chars_5mod[] = {
253c2c66affSColin Finck /* Normal, Shifted, Ctrl, Ctrl-Alt, C-S-x */
254c2c66affSColin Finck { '6', 0, {'6', '&', WCH_NONE, WCH_NONE, 0x1e /* RS */} },
255c2c66affSColin Finck { 0, 0 }
256c2c66affSColin Finck };
257c2c66affSColin Finck
258c2c66affSColin Finck ROSDATA VK_TO_WCHARS1 keypad_numbers[] = {
259c2c66affSColin Finck { VK_NUMPAD0, 0, {'0'} },
260c2c66affSColin Finck { VK_NUMPAD1, 0, {'1'} },
261c2c66affSColin Finck { VK_NUMPAD2, 0, {'2'} },
262c2c66affSColin Finck { VK_NUMPAD3, 0, {'3'} },
263c2c66affSColin Finck { VK_NUMPAD4, 0, {'4'} },
264c2c66affSColin Finck { VK_NUMPAD5, 0, {'5'} },
265c2c66affSColin Finck { VK_NUMPAD6, 0, {'6'} },
266c2c66affSColin Finck { VK_NUMPAD7, 0, {'7'} },
267c2c66affSColin Finck { VK_NUMPAD8, 0, {'8'} },
268c2c66affSColin Finck { VK_NUMPAD9, 0, {'9'} },
269c2c66affSColin Finck { VK_DECIMAL, 0, {'.'} },
270c2c66affSColin Finck { 0,0 }
271c2c66affSColin Finck };
272c2c66affSColin Finck
273c2c66affSColin Finck #define vk_master(n,x) { (PVK_TO_WCHARS1)x, n, sizeof(x[0]) }
274c2c66affSColin Finck
275c2c66affSColin Finck ROSDATA VK_TO_WCHAR_TABLE vk_to_wchar_master_table[] = {
276c2c66affSColin Finck vk_master(3, key_to_chars_3mod),
277c2c66affSColin Finck vk_master(4, key_to_chars_4mod),
278c2c66affSColin Finck vk_master(5, key_to_chars_5mod),
279c2c66affSColin Finck vk_master(2, key_to_chars_2mod),
280c2c66affSColin Finck vk_master(1, keypad_numbers),
281c2c66affSColin Finck { 0,0,0 }
282c2c66affSColin Finck };
283c2c66affSColin Finck
284c2c66affSColin Finck ROSDATA VSC_LPWSTR key_names[] = {
285c2c66affSColin Finck { 0x00, L"" },
286c2c66affSColin Finck { 0x01, L"Esc" },
287c2c66affSColin Finck { 0x0e, L"Backspace" },
288c2c66affSColin Finck { 0x0f, L"Tab" },
289c2c66affSColin Finck { 0x1c, L"Enter" },
290c2c66affSColin Finck { 0x1d, L"Ctrl" },
291c2c66affSColin Finck { 0x2a, L"Shift" },
292c2c66affSColin Finck { 0x36, L"Right Shift" },
293c2c66affSColin Finck { 0x37, L"Num *" },
294c2c66affSColin Finck { 0x38, L"Alt" },
295c2c66affSColin Finck { 0x39, L"Spatie" },
296c2c66affSColin Finck { 0x3a, L"CAPLOK Lock" },
297c2c66affSColin Finck { 0x3b, L"F1" },
298c2c66affSColin Finck { 0x3c, L"F2" },
299c2c66affSColin Finck { 0x3d, L"F3" },
300c2c66affSColin Finck { 0x3e, L"F4" },
301c2c66affSColin Finck { 0x3f, L"F5" },
302c2c66affSColin Finck { 0x40, L"F6" },
303c2c66affSColin Finck { 0x41, L"F7" },
304c2c66affSColin Finck { 0x42, L"F8" },
305c2c66affSColin Finck { 0x43, L"F9" },
306c2c66affSColin Finck { 0x44, L"F10" },
307c2c66affSColin Finck { 0x45, L"Pause" },
308c2c66affSColin Finck { 0x46, L"Scroll Lock" },
309c2c66affSColin Finck { 0x47, L"Num 7" },
310c2c66affSColin Finck { 0x48, L"Num 8" },
311c2c66affSColin Finck { 0x49, L"Num 9" },
312c2c66affSColin Finck { 0x4a, L"Num -" },
313c2c66affSColin Finck { 0x4b, L"Num 4" },
314c2c66affSColin Finck { 0x4c, L"Num 5" },
315c2c66affSColin Finck { 0x4d, L"Num 6" },
316c2c66affSColin Finck { 0x4e, L"Num +" },
317c2c66affSColin Finck { 0x4f, L"Num 1" },
318c2c66affSColin Finck { 0x50, L"Num 2" },
319c2c66affSColin Finck { 0x51, L"Num 3" },
320c2c66affSColin Finck { 0x52, L"Num 0" },
321c2c66affSColin Finck { 0x53, L"Num Del" },
322c2c66affSColin Finck { 0x54, L"Sys Req" },
323c2c66affSColin Finck { 0x57, L"F11" },
324c2c66affSColin Finck { 0x58, L"F12" },
325c2c66affSColin Finck { 0x7c, L"F13" },
326c2c66affSColin Finck { 0x7d, L"F14" },
327c2c66affSColin Finck { 0x7e, L"F15" },
328c2c66affSColin Finck { 0x7f, L"F16" },
329c2c66affSColin Finck { 0x80, L"F17" },
330c2c66affSColin Finck { 0x81, L"F18" },
331c2c66affSColin Finck { 0x82, L"F19" },
332c2c66affSColin Finck { 0x83, L"F20" },
333c2c66affSColin Finck { 0x84, L"F21" },
334c2c66affSColin Finck { 0x85, L"F22" },
335c2c66affSColin Finck { 0x86, L"F23" },
336c2c66affSColin Finck { 0x87, L"F24" },
337c2c66affSColin Finck { 0, NULL },
338c2c66affSColin Finck };
339c2c66affSColin Finck
340c2c66affSColin Finck ROSDATA VSC_LPWSTR extended_key_names[] = {
341c2c66affSColin Finck { 0x1c, L"Num Enter" },
342c2c66affSColin Finck { 0x1d, L"Right Ctrl" },
343c2c66affSColin Finck { 0x35, L"Num /" },
344c2c66affSColin Finck { 0x37, L"Prnt Scrn" },
345c2c66affSColin Finck { 0x38, L"Right Alt" },
346c2c66affSColin Finck { 0x45, L"Num Lock" },
347c2c66affSColin Finck { 0x46, L"Break" },
348c2c66affSColin Finck { 0x47, L"Home" },
349c2c66affSColin Finck { 0x48, L"Up" },
350c2c66affSColin Finck { 0x49, L"Page Up" },
351*299e4305STibor Lajos Füzi { 0x4b, L"Left" },
352c2c66affSColin Finck { 0x4c, L"Center" },
353c2c66affSColin Finck { 0x4d, L"Right" },
354c2c66affSColin Finck { 0x4f, L"End" },
355c2c66affSColin Finck { 0x50, L"Down" },
356c2c66affSColin Finck { 0x51, L"Page Down" },
357c2c66affSColin Finck { 0x52, L"Insert" },
358c2c66affSColin Finck { 0x53, L"Delete" },
359c2c66affSColin Finck { 0x54, L"<ReactOS>" },
360c2c66affSColin Finck { 0x55, L"Help" },
361c2c66affSColin Finck { 0x56, L"Left Windows" },
362c2c66affSColin Finck { 0x5b, L"Right Windows" },
363c2c66affSColin Finck { 0, NULL },
364c2c66affSColin Finck };
365c2c66affSColin Finck
366c2c66affSColin Finck ROSDATA DEADKEY_LPWSTR dead_key_names[] = {
367c2c66affSColin Finck L"\x005e" L"Circumflex",
368c2c66affSColin Finck L"\x007e" L"Tilde",
369c2c66affSColin Finck L"\x0060" L"Grave",
370c2c66affSColin Finck NULL
371c2c66affSColin Finck };
372c2c66affSColin Finck
373c2c66affSColin Finck #define DEADTRANS(ch, accent, comp, flags) MAKELONG(ch, accent), comp, flags
374c2c66affSColin Finck
375c2c66affSColin Finck ROSDATA DEADKEY dead_key[] = {
376c2c66affSColin Finck /* � */
377c2c66affSColin Finck { DEADTRANS(0x0061, 0x00a8, 0x00e4, 0x0000) }, // a -> �
378c2c66affSColin Finck { DEADTRANS(0x0065, 0x00a8, 0x00eb, 0x0000) }, // e -> �
379c2c66affSColin Finck { DEADTRANS(0x0069, 0x00a8, 0x00ef, 0x0000) }, // i -> �
380c2c66affSColin Finck { DEADTRANS(0x006f, 0x00a8, 0x00f6, 0x0000) }, // o -> �
381c2c66affSColin Finck { DEADTRANS(0x0075, 0x00a8, 0x00fc, 0x0000) }, // u -> �
382c2c66affSColin Finck { DEADTRANS(0x0079, 0x00a8, 0x00ff, 0x0000) }, // y -> �
383c2c66affSColin Finck { DEADTRANS(0x0041, 0x00a8, 0x00c4, 0x0000) }, // A -> �
384c2c66affSColin Finck { DEADTRANS(0x0045, 0x00a8, 0x00cb, 0x0000) }, // E -> �
385c2c66affSColin Finck { DEADTRANS(0x0049, 0x00a8, 0x00cf, 0x0000) }, // I -> �
386c2c66affSColin Finck { DEADTRANS(0x004f, 0x00a8, 0x00d6, 0x0000) }, // O -> �
387c2c66affSColin Finck { DEADTRANS(0x0055, 0x00a8, 0x00dc, 0x0000) }, // U -> �
388c2c66affSColin Finck { DEADTRANS(0x0020, 0x00a8, 0x00a8, 0x0000) }, // Space -> �
389c2c66affSColin Finck
390c2c66affSColin Finck /* ^ */
391c2c66affSColin Finck { DEADTRANS(0x0061, 0x005e, 0x00e2, 0x0000) }, // a -> �
392c2c66affSColin Finck { DEADTRANS(0x0065, 0x005e, 0x00ea, 0x0000) }, // e -> �
393c2c66affSColin Finck { DEADTRANS(0x0069, 0x005e, 0x00ee, 0x0000) }, // i -> �
394c2c66affSColin Finck { DEADTRANS(0x006f, 0x005e, 0x00f4, 0x0000) }, // o -> �
395c2c66affSColin Finck { DEADTRANS(0x0075, 0x005e, 0x00fb, 0x0000) }, // u -> �
396c2c66affSColin Finck { DEADTRANS(0x0041, 0x005e, 0x00c2, 0x0000) }, // A -> �
397c2c66affSColin Finck { DEADTRANS(0x0045, 0x005e, 0x00ca, 0x0000) }, // E -> �
398c2c66affSColin Finck { DEADTRANS(0x0049, 0x005e, 0x00ce, 0x0000) }, // I -> �
399c2c66affSColin Finck { DEADTRANS(0x004f, 0x005e, 0x00d4, 0x0000) }, // O -> �
400c2c66affSColin Finck { DEADTRANS(0x0055, 0x005e, 0x00db, 0x0000) }, // U -> �
401c2c66affSColin Finck { DEADTRANS(0x0020, 0x005e, 0x005e, 0x0000) }, // Space -> ^
402c2c66affSColin Finck
403c2c66affSColin Finck /* ~ */
404c2c66affSColin Finck { DEADTRANS(0x0061, 0x007e, 0x00e3, 0x0000) }, // a -> �
405c2c66affSColin Finck { DEADTRANS(0x006f, 0x007e, 0x00f5, 0x0000) }, // o -> �
406c2c66affSColin Finck { DEADTRANS(0x006e, 0x007e, 0x00f1, 0x0000) }, // n -> �
407c2c66affSColin Finck { DEADTRANS(0x0041, 0x007e, 0x00c3, 0x0000) }, // A -> �
408c2c66affSColin Finck { DEADTRANS(0x004f, 0x007e, 0x00d5, 0x0000) }, // O -> �
409c2c66affSColin Finck { DEADTRANS(0x004e, 0x007e, 0x00d1, 0x0000) }, // N -> �
410c2c66affSColin Finck { DEADTRANS(0x0020, 0x007e, 0x007e, 0x0000) }, // Space -> ~
411c2c66affSColin Finck
412c2c66affSColin Finck /* � */
413c2c66affSColin Finck { DEADTRANS(0x0061, 0x00b4, 0x00e1, 0x0000) }, // a -> �
414c2c66affSColin Finck { DEADTRANS(0x0065, 0x00b4, 0x00e9, 0x0000) }, // e -> �
415c2c66affSColin Finck { DEADTRANS(0x0069, 0x00b4, 0x00ed, 0x0000) }, // i -> �
416c2c66affSColin Finck { DEADTRANS(0x006f, 0x00b4, 0x00f3, 0x0000) }, // o -> �
417c2c66affSColin Finck { DEADTRANS(0x0075, 0x00b4, 0x00fa, 0x0000) }, // u -> �
418c2c66affSColin Finck { DEADTRANS(0x0079, 0x00b4, 0x00fd, 0x0000) }, // y -> �
419c2c66affSColin Finck { DEADTRANS(0x0041, 0x00b4, 0x00c1, 0x0000) }, // A -> �
420c2c66affSColin Finck { DEADTRANS(0x0045, 0x00b4, 0x00c9, 0x0000) }, // E -> �
421c2c66affSColin Finck { DEADTRANS(0x0049, 0x00b4, 0x00cd, 0x0000) }, // I -> �
422c2c66affSColin Finck { DEADTRANS(0x004f, 0x00b4, 0x00d3, 0x0000) }, // O -> �
423c2c66affSColin Finck { DEADTRANS(0x0055, 0x00b4, 0x00da, 0x0000) }, // U -> �
424c2c66affSColin Finck { DEADTRANS(0x0059, 0x00b4, 0x00dd, 0x0000) }, // Y -> �
425c2c66affSColin Finck { DEADTRANS(0x0020, 0x00b4, 0x00b4, 0x0000) }, // Space -> �
426c2c66affSColin Finck
427c2c66affSColin Finck /* ` */
428c2c66affSColin Finck { DEADTRANS(0x0061, 0x0060, 0x00e0, 0x0000) }, // a -> �
429c2c66affSColin Finck { DEADTRANS(0x0065, 0x0060, 0x00e8, 0x0000) }, // e -> �
430c2c66affSColin Finck { DEADTRANS(0x0069, 0x0060, 0x00ec, 0x0000) }, // i -> �
431c2c66affSColin Finck { DEADTRANS(0x006f, 0x0060, 0x00f2, 0x0000) }, // o -> �
432c2c66affSColin Finck { DEADTRANS(0x0075, 0x0060, 0x00f9, 0x0000) }, // u -> �
433c2c66affSColin Finck { DEADTRANS(0x0041, 0x0060, 0x00c0, 0x0000) }, // A -> �
434c2c66affSColin Finck { DEADTRANS(0x0045, 0x0060, 0x00c8, 0x0000) }, // E -> �
435c2c66affSColin Finck { DEADTRANS(0x0049, 0x0060, 0x00cc, 0x0000) }, // I -> �
436c2c66affSColin Finck { DEADTRANS(0x004f, 0x0060, 0x00d2, 0x0000) }, // O -> �
437c2c66affSColin Finck { DEADTRANS(0x0055, 0x0060, 0x00d9, 0x0000) }, // U -> �
438c2c66affSColin Finck { DEADTRANS(0x0020, 0x0060, 0x0060, 0x0000) }, // Space -> `
439c2c66affSColin Finck { 0, 0 }
440c2c66affSColin Finck };
441c2c66affSColin Finck
442c2c66affSColin Finck /* Finally, the master table */
443c2c66affSColin Finck ROSDATA KBDTABLES keyboard_layout_table = {
444c2c66affSColin Finck /* modifier assignments */
445c2c66affSColin Finck &modifier_bits,
446c2c66affSColin Finck
447c2c66affSColin Finck /* character from vk tables */
448c2c66affSColin Finck vk_to_wchar_master_table,
449c2c66affSColin Finck
450c2c66affSColin Finck /* diacritical marks -- currently implemented by wine code */
451c2c66affSColin Finck dead_key,
452c2c66affSColin Finck
453c2c66affSColin Finck /* Key names */
454c2c66affSColin Finck (VSC_LPWSTR *)key_names,
455c2c66affSColin Finck (VSC_LPWSTR *)extended_key_names,
456c2c66affSColin Finck dead_key_names, /* Dead key names */
457c2c66affSColin Finck
458c2c66affSColin Finck /* scan code to virtual key maps */
459c2c66affSColin Finck scancode_to_vk,
460cdf90707SStanislav Motylkov RTL_NUMBER_OF(scancode_to_vk),
461c2c66affSColin Finck extcode0_to_vk,
462c2c66affSColin Finck extcode1_to_vk,
463c2c66affSColin Finck
464c2c66affSColin Finck MAKELONG(KLLF_ALTGR, 1), /* Version 1.0 */
465c2c66affSColin Finck
466c2c66affSColin Finck /* Ligatures -- None in Dutch */
467c2c66affSColin Finck 0,
468c2c66affSColin Finck 0,
469c2c66affSColin Finck NULL
470c2c66affSColin Finck };
471c2c66affSColin Finck
KbdLayerDescriptor(VOID)472c2c66affSColin Finck PKBDTABLES WINAPI KbdLayerDescriptor(VOID) {
473c2c66affSColin Finck return &keyboard_layout_table;
474c2c66affSColin Finck }
475c2c66affSColin Finck
476c2c66affSColin Finck INT WINAPI
DllMain(PVOID hinstDll,ULONG dwReason,PVOID reserved)477c2c66affSColin Finck DllMain(
478c2c66affSColin Finck PVOID hinstDll,
479c2c66affSColin Finck ULONG dwReason,
480c2c66affSColin Finck PVOID reserved)
481c2c66affSColin Finck {
482c2c66affSColin Finck UNREFERENCED_PARAMETER(hinstDll);
483c2c66affSColin Finck UNREFERENCED_PARAMETER(dwReason);
484c2c66affSColin Finck UNREFERENCED_PARAMETER(reserved);
485c2c66affSColin Finck return 1;
486c2c66affSColin Finck }
487