ReactOS 0.4.15-dev-5669-g09dde2c
kbdsp.c
Go to the documentation of this file.
1/*
2 * ReactOS Spanish Keyboard Layout
3 * Copyright (C) 2003-2014 ReactOS
4 * License: LGPL, see: LGPL.txt
5 *
6 * (c) 2003 - Created by HUMA2000 <huma2000@terra.es> from kbdus, kbdgr, kbdda and kbdfr.
7 * (c) 2014 - Updated by Swyter <swyterzone+ros@gmail.com>
8 *
9 * Thanks to: arty, for the kbtest utility and help.
10 * Thanks to: carraca, from reactos.com forum for his fixes.
11 * Thanks to: Elrond, for help.
12 *
13 * Thanks to: http://www.barcodeman.com/altek/mule/scandoc.php
14 * and http://win.tue.nl/~aeb/linux/kbd/scancodes-1.html
15 */
16
17#define WIN32_NO_STATUS
18#include <stdarg.h>
19#include <windef.h>
20#include <winuser.h>
21#include <ndk/kbd.h>
22
23#ifdef _M_IA64
24 #define ROSDATA static __declspec(allocate(".data"))
25#else
26 #ifdef _MSC_VER
27 #pragma data_seg(".data")
28 #define ROSDATA static
29 #else
30 #define ROSDATA static __attribute__((section(".data")))
31 #endif
32#endif
33
34#define VK_EMPTY 0xff /* The non-existent VK */
35
36#define KNUMS KBDNUMPAD|KBDSPECIAL /* Special + number pad */
37#define KMEXT KBDEXT|KBDMULTIVK /* Multi + ext */
38
40{
41 /* 00 */ VK_EMPTY,
42 /* 01 */ VK_ESCAPE,
43 /* 02 */ L'1',
44 /* 03 */ L'2',
45 /* 04 */ L'3',
46 /* 05 */ L'4',
47 /* 06 */ L'5',
48 /* 07 */ L'6',
49 /* 08 */ L'7',
50 /* 09 */ L'8',
51 /* 0a */ L'9',
52 /* 0b */ L'0',
53 /* 0c */ VK_OEM_4,
54 /* 0d */ VK_OEM_6,
55 /* 0e */ VK_BACK,
56 /* 0f */ VK_TAB,
57 /* 10 */ L'Q',
58 /* 11 */ L'W',
59 /* 12 */ L'E',
60 /* 13 */ L'R',
61 /* 14 */ L'T',
62 /* 15 */ L'Y',
63 /* 16 */ L'U',
64 /* 17 */ L'I',
65 /* 18 */ L'O',
66 /* 19 */ L'P',
67 /* 1a */ VK_OEM_1,
68 /* 1b */ VK_OEM_PLUS,
69 /* 1c */ VK_RETURN,
70 /* 1d */ VK_LCONTROL,
71 /* 1e */ L'A',
72 /* 1f */ L'S',
73 /* 20 */ L'D',
74 /* 21 */ L'F',
75 /* 22 */ L'G',
76 /* 23 */ L'H',
77 /* 24 */ L'J',
78 /* 25 */ L'K',
79 /* 26 */ L'L',
80 /* 27 */ VK_OEM_3,
81 /* 28 */ VK_OEM_7,
82 /* 29 */ VK_OEM_5,
83 /* 2a */ VK_LSHIFT,
84 /* 2b */ VK_OEM_2,
85 /* 2c */ L'Z',
86 /* 2d */ L'X',
87 /* 2e */ L'C',
88 /* 2f */ L'V',
89 /* 30 */ L'B',
90 /* 31 */ L'N',
91 /* 32 */ L'M',
92 /* 33 */ VK_OEM_COMMA,
93 /* 34 */ VK_OEM_PERIOD,
94 /* 35 */ VK_OEM_MINUS,
95 /* 36 */ VK_RSHIFT,
96 /* 37 */ VK_MULTIPLY,
97 /* 38 */ VK_LMENU,
98 /* 39 */ VK_SPACE,
99 /* 3a */ VK_CAPITAL,
100 /* 3b */ VK_F1,
101 /* 3c */ VK_F2,
102 /* 3d */ VK_F3,
103 /* 3e */ VK_F4,
104 /* 3f */ VK_F5,
105 /* 40 */ VK_F6,
106 /* 41 */ VK_F7,
107 /* 42 */ VK_F8,
108 /* 43 */ VK_F9,
109 /* 44 */ VK_F10,
110 /* 45 */ VK_NUMLOCK | KMEXT,
111 /* 46 */ VK_SCROLL | KBDMULTIVK,
112 /* 47 */ VK_HOME | KNUMS,
113 /* 48 */ VK_UP | KNUMS,
114 /* 49 */ VK_PRIOR | KNUMS,
115 /* 4a */ VK_SUBTRACT,
116 /* 4b */ VK_LEFT | KNUMS,
117 /* 4c */ VK_CLEAR | KNUMS,
118 /* 4d */ VK_RIGHT | KNUMS,
119 /* 4e */ VK_ADD,
120 /* 4f */ VK_END | KNUMS,
121 /* 50 */ VK_DOWN | KNUMS,
122 /* 51 */ VK_NEXT | KNUMS,
123 /* 52 */ VK_INSERT | KNUMS,
124 /* 53 */ VK_DELETE | KNUMS,
125 /* 54 */ VK_SNAPSHOT,
126 /* 55 */ VK_EMPTY,
127 /* 56 */ VK_OEM_102,
128 /* 57 */ VK_F11,
129 /* 58 */ VK_F12,
130 /* 59 */ VK_EMPTY,
131 /* 5a */ VK_CLEAR,
132 /* 5b */ VK_EMPTY,
133 /* 5c */ VK_EMPTY,
134 /* 5d */ VK_EMPTY,
135 /* 5e */ VK_EMPTY, /* EREOF */
136 /* 5f */ VK_EMPTY,
137 /* 60 */ VK_EMPTY,
138 /* 61 */ VK_EMPTY,
139 /* 62 */ VK_EMPTY,
140 /* 63 */ VK_EMPTY, /* ZOOM */
141 /* 64 */ VK_HELP,
142 /* 65 */ VK_F13,
143 /* 66 */ VK_F14,
144 /* 67 */ VK_F15,
145 /* 68 */ VK_F16,
146 /* 69 */ VK_F17,
147 /* 6a */ VK_F18,
148 /* 6b */ VK_F19,
149 /* 6c */ VK_F20,
150 /* 6d */ VK_F21,
151 /* 6e */ VK_F22,
152 /* 6f */ VK_F23,
153 /* 70 */ VK_EMPTY,
154 /* 71 */ VK_EMPTY,
155 /* 72 */ VK_EMPTY,
156 /* 73 */ VK_EMPTY,
157 /* 74 */ VK_EMPTY,
158 /* 75 */ VK_EMPTY,
159 /* 76 */ VK_EMPTY,
160 /* 77 */ VK_F24,
161 /* 78 */ VK_EMPTY,
162 /* 79 */ VK_EMPTY,
163 /* 7a */ VK_EMPTY,
164 /* 7b */ VK_EMPTY,
165 /* 7c */ VK_EMPTY,
166 /* 7d */ VK_EMPTY,
167 /* 7e */ VK_EMPTY,
168};
169
171{
172 { 0x10, KBDEXT | VK_MEDIA_PREV_TRACK }, // Pista anterior, no puedo probarlo hasta que no se implemente el sonido
173 { 0x19, KBDEXT | VK_MEDIA_NEXT_TRACK }, // Pista siguiente,
174 { 0x1D, KBDEXT | VK_RCONTROL }, // Tecla control
175 { 0x20, KBDEXT | VK_VOLUME_MUTE }, // Silenciar volumen
176 { 0x21, KBDEXT | VK_LAUNCH_APP2 }, // Tecla calculadora
177 { 0x22, KBDEXT | VK_MEDIA_PLAY_PAUSE }, // Reproducir/Pausa
178 { 0x24, KBDEXT | VK_MEDIA_STOP }, // Stop
179 { 0x2E, KBDEXT | VK_VOLUME_DOWN }, // Bajar volumen
180 { 0x30, KBDEXT | VK_VOLUME_UP }, // Subir volumen
181 { 0x32, KBDEXT | VK_BROWSER_HOME }, // Pagina de inicio del navegador de Internet o abrirlo si no esta activo
182 { 0x35, KBDEXT | VK_DIVIDE }, // Tecla
183 { 0x37, KBDEXT | VK_SNAPSHOT }, // La tecla de imprimir pantalla
184 { 0x38, KBDEXT | VK_RMENU }, // Tecla Alt
185 { 0x47, KBDEXT | VK_HOME }, // Tecla inicio
186 { 0x48, KBDEXT | VK_UP }, // Cursor arriba
187 { 0x49, KBDEXT | VK_PRIOR }, // Tecla Repág
188 { 0x4B, KBDEXT | VK_LEFT }, // Cursor izquierda
189 { 0x4D, KBDEXT | VK_RIGHT }, // Cursor derecha
190 { 0x4F, KBDEXT | VK_END }, // Tecla Fin
191 { 0x50, KBDEXT | VK_DOWN }, // Cursor abajo
192 { 0x51, KBDEXT | VK_NEXT }, // Tecla Avpág
193 { 0x52, KBDEXT | VK_INSERT }, // Tecla Ins
194 { 0x53, KBDEXT | VK_DELETE }, // Tecla Supr
195 { 0x5B, KBDEXT | VK_LWIN }, // Tecla Windows izquierda
196 { 0x5C, KBDEXT | VK_RWIN }, // Tecla Windows derecha
197 { 0x5D, KBDEXT | VK_APPS }, // Tecla menú aplicacion derecha
198 { 0x5F, KBDEXT | VK_SLEEP }, // Tecla Suspensión
199 { 0x65, KBDEXT | VK_BROWSER_SEARCH }, // Pagina de búsqueda en el navegador de Internet
200 { 0x66, KBDEXT | VK_BROWSER_FAVORITES }, // Favoritos, tengo que esperar a que el tcp/ip
201 { 0x67, KBDEXT | VK_BROWSER_REFRESH }, // Refrescar el navegador de Internet
202 { 0x68, KBDEXT | VK_BROWSER_STOP }, // Stop en el navegador de Internet
203 { 0x69, KBDEXT | VK_BROWSER_FORWARD }, // Adelante en el navegador de Internet
204 { 0x6A, KBDEXT | VK_BROWSER_BACK }, // Atrás en el navegador de Internet
205 { 0x6B, KBDEXT | VK_LAUNCH_APP1 }, // Tecla Mi PC
206 { 0x6C, KBDEXT | VK_LAUNCH_MAIL }, // Abrir programa de e-mail
207 { 0x6D, KBDEXT | VK_LAUNCH_MEDIA_SELECT }, // Abrir reproductor multimedia
208 { 0x1C, KBDEXT | VK_RETURN }, // La tecla de intro
209 { 0x46, KBDEXT | VK_CANCEL }, // Tecla escape
210 { 0, 0 },
211};
212
214{
215 { 0, 0 },
216};
217
219{
220 { VK_SHIFT, KBDSHIFT },
221 { VK_CONTROL, KBDCTRL },
222 { VK_MENU, KBDALT },
223 { 0, 0 }
224};
225
227{
229 6,
230 {
231 0, /* NINGUNO */
232 1, /* MAYÚS */
233 2, /* CTRL */
234 2|1, /* CTRL+MAYÚS */
237 3 /* ALT */
238 }
239};
240
241ROSDATA VK_TO_WCHARS2 key_to_chars_2mod[] =
242{
243 /* Normal, Mayús */
244 /* The numbers -- Del 1 al 6 tienen tres estados */
245 { L'7', 0, {L'7', L'/'} },
246 { L'8', 0, {L'8', L'('} },
247 { L'9', 0, {L'9', L')'} },
248 { L'0', 0, {L'0', L'='} },
249 { VK_OEM_3, CAPLOK, {L'ñ', L'Ñ'} }, /* ñÑ */
250
251 /* Specials */
252 /* Ctrl-_ generates ES */
253 { VK_OEM_6, 0, {L'¡', L'¿'} }, /* ¡¿ */
254 { VK_OEM_4, 0, {0x27, L'?'} }, /* '? */
255 { VK_OEM_COMMA, 0, {L',', L';'} },
256 { VK_OEM_PERIOD, 0, {L'.', L':'} },
257 { VK_OEM_MINUS, 0, {L'-', L'_'} },
258 { VK_OEM_102, 0, {L'<', L'>'} },
259
260 /* Keys that do not have shift states */
261 { VK_TAB, 0, {L'\t', L'\t'} },
262 { VK_ADD, 0, {L'+', L'+'} },
263 { VK_SUBTRACT, 0, {L'-', L'-'} },
264 { VK_MULTIPLY, 0, {L'*', L'*'} },
265 { VK_DIVIDE, 0, {L'/', L'/'} },
266 { VK_ESCAPE, 0, {0x1b, 0x1b} },
267 { VK_SPACE, 0, {L' ', L' '} },
268 { 0, 0 }
269};
270
271ROSDATA VK_TO_WCHARS3 key_to_chars_3mod[] =
272{
273 /* Normal, Mayús, Ctrl */
274 /* The alphabet */
275 { L'A', CAPLOK, {L'a', L'A', 0x01} },
276 { L'B', CAPLOK, {L'b', L'B', 0x02} },
277 { L'C', CAPLOK, {L'c', L'C', 0x03} },
278 { L'D', CAPLOK, {L'd', L'D', 0x04} },
279 { L'F', CAPLOK, {L'f', L'F', 0x06} },
280 { L'G', CAPLOK, {L'g', L'G', 0x07} },
281 { L'H', CAPLOK, {L'h', L'H', 0x08} },
282 { L'I', CAPLOK, {L'i', L'I', 0x09} },
283 { L'J', CAPLOK, {L'j', L'J', 0x0a} },
284 { L'K', CAPLOK, {L'k', L'K', 0x0b} },
285 { L'L', CAPLOK, {L'l', L'L', 0x0c} },
286 { L'M', CAPLOK, {L'm', L'M', 0x0d} },
287 { L'N', CAPLOK, {L'n', L'N', 0x0e} },
288 { L'O', CAPLOK, {L'o', L'O', 0x0f} },
289 { L'P', CAPLOK, {L'p', L'P', 0x10} },
290 { L'Q', CAPLOK, {L'q', L'Q', 0x11} },
291 { L'R', CAPLOK, {L'r', L'R', 0x12} },
292 { L'S', CAPLOK, {L's', L'S', 0x13} },
293 { L'T', CAPLOK, {L't', L'T', 0x14} },
294 { L'U', CAPLOK, {L'u', L'U', 0x15} },
295 { L'V', CAPLOK, {L'v', L'V', 0x16} },
296 { L'W', CAPLOK, {L'w', L'W', 0x17} },
297 { L'X', CAPLOK, {L'x', L'X', 0x18} },
298 { L'Y', CAPLOK, {L'y', L'Y', 0x19} },
299 { L'Z', CAPLOK, {L'z', L'Z', 0x1a} },
300
301 /* Legacy (telnet-style) ascii escapes */
302 { VK_RETURN, 0, {L'\r',L'\r',L'\n'} },
303 { 0, 0 }
304};
305
306ROSDATA VK_TO_WCHARS4 key_to_chars_4mod[] =
307{
308 /* Normal, Mayús, Ctrl, Alt+Gr */
309 { L'1', 0, {L'1', L'!', WCH_NONE, L'|'} }, /* 1!| */
310 { L'2', 0, {L'2', L'"', WCH_NONE, L'@'} }, /* 2"@ */
311 { L'3', 0, {L'3', L'·', WCH_NONE, L'#'} }, /* 3·# */
312 { L'4', 0, {L'4', L'$', WCH_NONE, WCH_DEAD} }, /* 4$~ */
313 { VK_EMPTY, 0, {WCH_NONE, WCH_NONE, WCH_NONE, L'~'} }, /* 4$~ */
314 { L'5', 0, {L'5', L'%', WCH_NONE, L'€'} }, /* 5%€ */
315 { L'6', 0, {L'6', L'&', WCH_NONE, L'¬'} }, /* 6&¬ */
316 { L'E', CAPLOK, {L'e', L'E', 0x05, L'€'} }, /* eE€ */
317 { VK_OEM_PLUS, 0, {L'+', L'*', WCH_NONE, L']'} }, /* +*] */
318 { VK_OEM_2, 0, {L'ç', L'Ç', WCH_NONE, L'}'} }, /* çÇ} */
319
320 { VK_OEM_7, 0, {WCH_DEAD, WCH_DEAD, WCH_NONE, L'{'} }, /* ´¨{ */
321 { VK_EMPTY, 0, {L'´', L'¨', WCH_NONE, WCH_NONE} }, /* ´¨{ */
322
323 { VK_OEM_1, 0, {WCH_DEAD, WCH_DEAD, WCH_NONE, L'['} }, /* `^[ */
324 { VK_EMPTY, 0, {L'`', L'^', WCH_NONE, WCH_NONE} }, /* `^[ */
325
326 { VK_OEM_5, 0, {L'º', L'ª', WCH_NONE, 0x5c} }, /* ºª\ */
327 { 0, 0 }
328};
329
330ROSDATA VK_TO_WCHARS1 keypad_numbers[] =
331{
332 { VK_NUMPAD0, 0, {L'0'} },
333 { VK_NUMPAD1, 0, {L'1'} },
334 { VK_NUMPAD2, 0, {L'2'} },
335 { VK_NUMPAD3, 0, {L'3'} },
336 { VK_NUMPAD4, 0, {L'4'} },
337 { VK_NUMPAD5, 0, {L'5'} },
338 { VK_NUMPAD6, 0, {L'6'} },
339 { VK_NUMPAD7, 0, {L'7'} },
340 { VK_NUMPAD8, 0, {L'8'} },
341 { VK_NUMPAD9, 0, {L'9'} },
342 { VK_DECIMAL, 0, {L'.'} },
343 { VK_BACK, 0, {L'\010'} },
344 { 0, 0 }
345};
346
347#define vk_master(n,x) { (PVK_TO_WCHARS1)x, n, sizeof(x[0]) }
348
350{
355 { 0, 0, 0 }
356};
357
358#define DEADTRANS(ch, accent, comp, flags) MAKELONG(ch, accent), comp, flags //no funciona
360{
361 /* ´ */
362 { DEADTRANS(L'a', L'´', 0xE1, 0x00) }, // letra a con ´ | á
363 { DEADTRANS(L'A', L'´', 0xC1, 0x00) }, // letra A con ´ | Á
364 { DEADTRANS(L'e', L'´', 0xE9, 0x00) }, // letra e con ´ | é
365 { DEADTRANS(L'E', L'´', 0xC9, 0x00) }, // letra E con ´ | É
366 { DEADTRANS(L'i', L'´', 0xED, 0x00) }, // letra i con ´ | í
367 { DEADTRANS(L'I', L'´', 0xCD, 0x00) }, // letra I con ´ | Í
368 { DEADTRANS(L'o', L'´', 0xF3, 0x00) }, // letra o con ´ | ó
369 { DEADTRANS(L'O', L'´', 0xD3, 0x00) }, // letra O con ´ | Ó
370 { DEADTRANS(L'u', L'´', 0xFA, 0x00) }, // letra u con ´ | ú
371 { DEADTRANS(L'U', L'´', 0xDA, 0x00) }, // letra U con ´ | Ú
372
373 /* ` */
374 { DEADTRANS(L'a', L'`', 0xE0, 0x00) }, // letra a con ` | à
375 { DEADTRANS(L'A', L'`', 0xC0, 0x00) }, // letra A con ` | À
376 { DEADTRANS(L'e', L'`', 0xE8, 0x00) }, // letra e con ` | è
377 { DEADTRANS(L'E', L'`', 0xC8, 0x00) }, // letra E con ` | È
378 { DEADTRANS(L'i', L'`', 0xEC, 0x00) }, // letra i con ` | ì
379 { DEADTRANS(L'I', L'`', 0xCC, 0x00) }, // letra I con ` | Ì
380 { DEADTRANS(L'o', L'`', 0xF2, 0x00) }, // letra o con ` | ò
381 { DEADTRANS(L'O', L'`', 0xD2, 0x00) }, // letra O con ` | Ò
382 { DEADTRANS(L'u', L'`', 0xF9, 0x00) }, // letra u con ` | ù
383 { DEADTRANS(L'U', L'`', 0xD9, 0x00) }, // letra U con ` | Ù
384
385 /* ^ */
386 { DEADTRANS(L'a', L'^', 0xE2, 0x00) }, // letra a con ^ | â
387 { DEADTRANS(L'A', L'^', 0xC2, 0x00) }, // letra A con ^ | Â
388 { DEADTRANS(L'e', L'^', 0xEA, 0x00) }, // letra e con ^ | ê
389 { DEADTRANS(L'E', L'^', 0xCA, 0x00) }, // letra E con ^ | Ê
390 { DEADTRANS(L'i', L'^', 0xEE, 0x00) }, // letra i con ^ | î
391 { DEADTRANS(L'I', L'^', 0xCE, 0x00) }, // letra I con ^ | Î
392 { DEADTRANS(L'o', L'^', 0xF4, 0x00) }, // letra o con ^ | ô
393 { DEADTRANS(L'O', L'^', 0xD4, 0x00) }, // letra O con ^ | Ô
394 { DEADTRANS(L'u', L'^', 0xFB, 0x00) }, // letra u con ^ | û
395 { DEADTRANS(L'U', L'^', 0xDB, 0x00) }, // letra U con ^ | Û
396
397 /* ¨ */
398 { DEADTRANS(L'a', L'¨', 0xE4, 0x00) }, // letra a con ¨ | ä
399 { DEADTRANS(L'A', L'¨', 0xC4, 0x00) }, // letra A con ¨ | Ä
400 { DEADTRANS(L'e', L'¨', 0xEB, 0x00) }, // letra e con ¨ | ë
401 { DEADTRANS(L'E', L'¨', 0xCB, 0x00) }, // letra E con ¨ | Ë
402 { DEADTRANS(L'i', L'¨', 0xEF, 0x00) }, // letra i con ¨ | ï
403 { DEADTRANS(L'I', L'¨', 0xCF, 0x00) }, // letra I con ¨ | Ï
404 { DEADTRANS(L'o', L'¨', 0xF6, 0x00) }, // letra o con ¨ | ö
405 { DEADTRANS(L'O', L'¨', 0xD6, 0x00) }, // letra O con ¨ | Ö
406 { DEADTRANS(L'u', L'¨', 0xFC, 0x00) }, // letra u con ¨ | ü
407 { DEADTRANS(L'U', L'¨', 0xDC, 0x00) }, // letra U con ¨ | Ü
408
409 /* ~ */
410 { DEADTRANS(L'a', L'~', 0xe3, 0x00) }, // letra a con ~ | ã
411 { DEADTRANS(L'A', L'~', 0xc3, 0x00) }, // letra A con ~ | Ã
412 { DEADTRANS(L'n', L'~', 0xf1, 0x00) }, // letra n con ~ | ñ
413 { DEADTRANS(L'N', L'~', 0xd1, 0x00) }, // letra N con ~ | Ñ
414 { DEADTRANS(L'o', L'~', 0xf5, 0x00) }, // letra o con ~ | õ
415 { DEADTRANS(L'O', L'~', 0xd5, 0x00) }, // letra O con ~ | Õ
416
417 { 0, 0, 0 }
418};
419
421{
422 { 0x00, L"" },
423 { 0x01, L"Esc" },
424 { 0x0e, L"Retroceso" },
425 { 0x0f, L"Tab" },
426 { 0x1c, L"Intro" },
427 { 0x1d, L"Ctrl" },
428 { 0x2a, L"Mayús" },
429 { 0x36, L"Mayús der." },
430 { 0x37, L"* num" },
431 { 0x38, L"Alt" },
432 { 0x39, L"Espacio" },
433 { 0x3a, L"Bloq mayús" },
434 { 0x3b, L"F1" },
435 { 0x3c, L"F2" },
436 { 0x3d, L"F3" },
437 { 0x3e, L"F4" },
438 { 0x3f, L"F5" },
439 { 0x40, L"F6" },
440 { 0x41, L"F7" },
441 { 0x42, L"F8" },
442 { 0x43, L"F9" },
443 { 0x44, L"F10" },
444 { 0x45, L"Pausa" },
445 { 0x46, L"Bloqueo despl." },
446 { 0x47, L"Num 7" },
447 { 0x48, L"Num 8" },
448 { 0x49, L"Num 9" },
449 { 0x4a, L"Num -" },
450 { 0x4b, L"Num 4" },
451 { 0x4c, L"Num 5" },
452 { 0x4d, L"Num 6" },
453 { 0x4e, L"Num +" },
454 { 0x4f, L"Num 1" },
455 { 0x50, L"Num 2" },
456 { 0x51, L"Num 3" },
457 { 0x52, L"Num 0" },
458 { 0x53, L"Supr numér." },
459 { 0x54, L"Pet sist" },
460 { 0x57, L"F11" },
461 { 0x58, L"F12" },
462 { 0x7c, L"F13" },
463 { 0x7d, L"F14" },
464 { 0x7e, L"F15" },
465 { 0x7f, L"F16" },
466 { 0x80, L"F17" },
467 { 0x81, L"F18" },
468 { 0x82, L"F19" },
469 { 0x83, L"F20" },
470 { 0x84, L"F21" },
471 { 0x85, L"F22" },
472 { 0x86, L"F23" },
473 { 0x87, L"F24" },
474 { 0, NULL },
475};
476
478{
479 { 0x1c, L"Intro num" },
480 { 0x1d, L"Ctrl der." },
481 { 0x35, L"/ num." },
482 { 0x37, L"Impr pant." },
483 { 0x38, L"Alt der." },
484 { 0x45, L"Bloq num" },
485 { 0x46, L"Int" },
486 { 0x47, L"Inicio" },
487 { 0x48, L"Arriba" },
488 { 0x49, L"Repág" },
489 { 0x4b, L"Izquierda" },
490 { 0x4c, L"Centrar" },
491 { 0x4d, L"Derecha" },
492 { 0x4f, L"Fin" },
493 { 0x50, L"Abajo" },
494 { 0x51, L"Avpág" },
495 { 0x52, L"Ins" },
496 { 0x53, L"Supr" },
497 { 0x54, L"<ReactOS>" },
498 { 0x55, L"Ayuda" },
499 { 0x5b, L"Windows izq." },
500 { 0x5c, L"Windows der." },
501 { 0, NULL },
502};
503
505{
506 L"\x00b4" L"Agudo",
507 L"\x0060" L"Grave",
508 L"\x005e" L"Circunflejo",
509 L"\x00A8" L"Diéresis",
510 NULL
511};
512
513/* Finally, the master table */
515{
516 /* modifier assignments */
518
519 /* character from vk tables */
521
522 /* diacritical marks -- currently implemented by wine code, spanish has several */
523 deadkey,
524
525 /* Key names */
528
529 /* Dead key names */
531
532 /* scan code to virtual key maps */
537
538 /* version 1.0 */
540
541 /* ligatures -- Spanish does not have any */
542 0,
543 0,
544 NULL
545};
546
548{
549 return &keyboard_layout_table;
550}
#define RTL_NUMBER_OF(x)
Definition: RtlRegistry.c:12
#define NULL
Definition: types.h:112
#define WCH_DEAD
Definition: kbd.h:114
#define CAPLOK
Definition: kbd.h:118
#define KBDALT
Definition: kbd.h:16
#define WCH_NONE
Definition: kbd.h:113
#define SHFT_INVALID
Definition: kbd.h:19
#define KBDCTRL
Definition: kbd.h:15
#define KBDEXT
Definition: kbd.h:8
#define KLLF_ALTGR
Definition: kbd.h:91
WCHAR * DEADKEY_LPWSTR
Definition: kbd.h:62
#define KBDSHIFT
Definition: kbd.h:14
#define KBDMULTIVK
Definition: kbd.h:9
PKBDTABLES WINAPI KbdLayerDescriptor()
Definition: kbdjpn.c:390
#define DEADTRANS(ch, accent, comp, flags)
Definition: kbdsp.c:358
#define KNUMS
Definition: kbdsp.c:36
ROSDATA VSC_LPWSTR extended_key_names[]
Definition: kbdsp.c:477
#define KMEXT
Definition: kbdsp.c:37
ROSDATA USHORT scancode_to_vk[]
Definition: kbdsp.c:39
ROSDATA VK_TO_WCHARS1 keypad_numbers[]
Definition: kbdsp.c:330
ROSDATA MODIFIERS modifier_bits
Definition: kbdsp.c:226
ROSDATA VK_TO_WCHARS4 key_to_chars_4mod[]
Definition: kbdsp.c:306
ROSDATA VSC_LPWSTR key_names[]
Definition: kbdsp.c:420
#define vk_master(n, x)
Definition: kbdsp.c:347
ROSDATA DEADKEY deadkey[]
Definition: kbdsp.c:359
ROSDATA VSC_VK extcode0_to_vk[]
Definition: kbdsp.c:170
ROSDATA VK_TO_WCHAR_TABLE vk_to_wchar_master_table[]
Definition: kbdsp.c:349
ROSDATA VK_TO_WCHARS3 key_to_chars_3mod[]
Definition: kbdsp.c:271
#define ROSDATA
Definition: kbdsp.c:30
ROSDATA VK_TO_WCHARS2 key_to_chars_2mod[]
Definition: kbdsp.c:241
ROSDATA DEADKEY_LPWSTR dead_key_names[]
Definition: kbdsp.c:504
#define VK_EMPTY
Definition: kbdsp.c:34
ROSDATA VK_TO_BIT modifier_keys[]
Definition: kbdsp.c:218
ROSDATA VSC_VK extcode1_to_vk[]
Definition: kbdsp.c:213
ROSDATA KBDTABLES keyboard_layout_table
Definition: kbdsp.c:514
#define L(x)
Definition: ntvdm.h:50
unsigned short USHORT
Definition: pedump.c:61
Definition: kbd.h:56
Definition: kbd.h:95
Definition: kbd.h:26
Definition: kbd.h:21
Definition: kbd.h:71
#define MAKELONG(a, b)
Definition: typedefs.h:249
#define WINAPI
Definition: msvc.h:6
#define VK_CLEAR
Definition: winuser.h:2190
#define VK_OEM_5
Definition: winuser.h:2308
#define VK_NUMPAD3
Definition: winuser.h:2232
#define VK_SNAPSHOT
Definition: winuser.h:2221
#define VK_F12
Definition: winuser.h:2256
#define VK_TAB
Definition: winuser.h:2189
#define VK_F9
Definition: winuser.h:2253
#define VK_APPS
Definition: winuser.h:2227
#define VK_MULTIPLY
Definition: winuser.h:2239
#define VK_NUMPAD1
Definition: winuser.h:2230
#define VK_F10
Definition: winuser.h:2254
#define VK_OEM_7
Definition: winuser.h:2310
#define VK_F15
Definition: winuser.h:2259
#define VK_NUMPAD2
Definition: winuser.h:2231
#define VK_SPACE
Definition: winuser.h:2209
#define VK_CAPITAL
Definition: winuser.h:2196
#define VK_OEM_4
Definition: winuser.h:2307
#define VK_NUMPAD4
Definition: winuser.h:2233
#define VK_SCROLL
Definition: winuser.h:2270
#define VK_F23
Definition: winuser.h:2267
#define VK_CONTROL
Definition: winuser.h:2193
#define VK_F22
Definition: winuser.h:2266
#define VK_RSHIFT
Definition: winuser.h:2273
#define VK_CANCEL
Definition: winuser.h:2182
#define VK_UP
Definition: winuser.h:2215
#define VK_F18
Definition: winuser.h:2262
#define VK_F16
Definition: winuser.h:2260
#define VK_LSHIFT
Definition: winuser.h:2272
#define VK_LCONTROL
Definition: winuser.h:2274
#define VK_NUMPAD0
Definition: winuser.h:2229
#define VK_F1
Definition: winuser.h:2245
#define VK_F6
Definition: winuser.h:2250
#define VK_F24
Definition: winuser.h:2268
#define VK_NUMPAD6
Definition: winuser.h:2235
#define VK_F21
Definition: winuser.h:2265
#define VK_NEXT
Definition: winuser.h:2211
#define VK_RCONTROL
Definition: winuser.h:2275
#define VK_F14
Definition: winuser.h:2258
#define VK_F20
Definition: winuser.h:2264
#define VK_RETURN
Definition: winuser.h:2191
#define VK_OEM_6
Definition: winuser.h:2309
#define VK_SLEEP
Definition: winuser.h:2228
#define VK_F5
Definition: winuser.h:2249
#define VK_F11
Definition: winuser.h:2255
#define VK_F8
Definition: winuser.h:2252
#define VK_RMENU
Definition: winuser.h:2277
#define VK_NUMPAD9
Definition: winuser.h:2238
#define VK_END
Definition: winuser.h:2212
#define VK_HOME
Definition: winuser.h:2213
#define VK_ADD
Definition: winuser.h:2240
#define VK_OEM_2
Definition: winuser.h:2305
#define VK_BACK
Definition: winuser.h:2188
#define VK_F3
Definition: winuser.h:2247
#define VK_LWIN
Definition: winuser.h:2225
#define VK_F4
Definition: winuser.h:2248
#define VK_NUMPAD5
Definition: winuser.h:2234
#define VK_LEFT
Definition: winuser.h:2214
#define VK_F17
Definition: winuser.h:2261
#define VK_NUMPAD7
Definition: winuser.h:2236
#define VK_RIGHT
Definition: winuser.h:2216
#define VK_OEM_1
Definition: winuser.h:2298
#define VK_DOWN
Definition: winuser.h:2217
#define VK_NUMLOCK
Definition: winuser.h:2269
#define VK_SHIFT
Definition: winuser.h:2192
#define VK_PRIOR
Definition: winuser.h:2210
#define VK_F19
Definition: winuser.h:2263
#define VK_DELETE
Definition: winuser.h:2223
#define VK_DIVIDE
Definition: winuser.h:2244
#define VK_NUMPAD8
Definition: winuser.h:2237
#define VK_F13
Definition: winuser.h:2257
#define VK_DECIMAL
Definition: winuser.h:2243
#define VK_ESCAPE
Definition: winuser.h:2204
#define VK_OEM_3
Definition: winuser.h:2306
#define VK_HELP
Definition: winuser.h:2224
#define VK_F7
Definition: winuser.h:2251
#define VK_INSERT
Definition: winuser.h:2222
#define VK_RWIN
Definition: winuser.h:2226
#define VK_SUBTRACT
Definition: winuser.h:2242
#define VK_LMENU
Definition: winuser.h:2276
#define VK_MENU
Definition: winuser.h:2194
#define VK_F2
Definition: winuser.h:2246