ReactOS  0.4.15-dev-3718-g2318f7f
kbdes.c File Reference
#include <stdarg.h>
#include <windef.h>
#include <winuser.h>
#include <ndk/kbd.h>
Include dependency graph for kbdes.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 
#define ROSDATA   static __attribute__((section(".data")))
 
#define VK_EMPTY   0xff /* The non-existent VK */
 
#define KNUMS   KBDNUMPAD|KBDSPECIAL /* Special + number pad */
 
#define KMEXT   KBDEXT|KBDMULTIVK /* Multi + ext */
 
#define vk_master(n, x)   { (PVK_TO_WCHARS1)x, n, sizeof(x[0]) }
 
#define DEADTRANS(ch, accent, comp, flags)   MAKELONG(ch, accent), comp, flags
 

Functions

PKBDTABLES WINAPI KbdLayerDescriptor (VOID)
 

Variables

ROSDATA USHORT scancode_to_vk []
 
ROSDATA VSC_VK extcode0_to_vk []
 
ROSDATA VSC_VK extcode1_to_vk []
 
ROSDATA VK_TO_BIT modifier_keys []
 
ROSDATA MODIFIERS modifier_bits
 
ROSDATA VK_TO_WCHARS2 key_to_chars_2mod []
 
ROSDATA VK_TO_WCHARS3 key_to_chars_3mod []
 
ROSDATA VK_TO_WCHARS4 key_to_chars_4mod []
 
ROSDATA VK_TO_WCHARS1 keypad_numbers []
 
ROSDATA VK_TO_WCHAR_TABLE vk_to_wchar_master_table []
 
ROSDATA DEADKEY deadkey []
 
ROSDATA VSC_LPWSTR key_names []
 
ROSDATA VSC_LPWSTR extended_key_names []
 
ROSDATA DEADKEY_LPWSTR dead_key_names []
 
ROSDATA KBDTABLES keyboard_layout_table
 

Macro Definition Documentation

◆ DEADTRANS

#define DEADTRANS (   ch,
  accent,
  comp,
  flags 
)    MAKELONG(ch, accent), comp, flags

Definition at line 361 of file kbdes.c.

◆ KMEXT

#define KMEXT   KBDEXT|KBDMULTIVK /* Multi + ext */

Definition at line 37 of file kbdes.c.

◆ KNUMS

#define KNUMS   KBDNUMPAD|KBDSPECIAL /* Special + number pad */

Definition at line 36 of file kbdes.c.

◆ ROSDATA

#define ROSDATA   static __attribute__((section(".data")))

Definition at line 30 of file kbdes.c.

◆ VK_EMPTY

#define VK_EMPTY   0xff /* The non-existent VK */

Definition at line 34 of file kbdes.c.

◆ vk_master

#define vk_master (   n,
  x 
)    { (PVK_TO_WCHARS1)x, n, sizeof(x[0]) }

Definition at line 350 of file kbdes.c.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 17 of file kbdes.c.

Function Documentation

◆ KbdLayerDescriptor()

PKBDTABLES WINAPI KbdLayerDescriptor ( VOID  )

Definition at line 550 of file kbdes.c.

551 {
552  return &keyboard_layout_table;
553 }
ROSDATA KBDTABLES keyboard_layout_table
Definition: kbdes.c:517

Variable Documentation

◆ dead_key_names

ROSDATA DEADKEY_LPWSTR dead_key_names[]
Initial value:
=
{
L"\x00b4" L"Agudo",
L"\x0060" L"Grave",
L"\x005e" L"Circunflejo",
L"\x00A8" L"Diéresis",
}
#define L(x)
Definition: ntvdm.h:50
#define NULL
Definition: types.h:112

Definition at line 507 of file kbdes.c.

◆ deadkey

ROSDATA DEADKEY deadkey[]

Definition at line 362 of file kbdes.c.

◆ extcode0_to_vk

ROSDATA VSC_VK extcode0_to_vk[]

Definition at line 173 of file kbdes.c.

◆ extcode1_to_vk

ROSDATA VSC_VK extcode1_to_vk[]
Initial value:
=
{
{ 0, 0 },
}

Definition at line 216 of file kbdes.c.

◆ extended_key_names

ROSDATA VSC_LPWSTR extended_key_names[]
Initial value:
=
{
{ 0x1c, L"Intro num" },
{ 0x1d, L"Ctrl der." },
{ 0x35, L"/ num." },
{ 0x37, L"Impr pant." },
{ 0x38, L"Alt der." },
{ 0x45, L"Bloq num" },
{ 0x46, L"Int" },
{ 0x47, L"Inicio" },
{ 0x48, L"Arriba" },
{ 0x49, L"Repág" },
{ 0x4b, L"Izquierda" },
{ 0x4c, L"Centrar" },
{ 0x4d, L"Derecha" },
{ 0x4f, L"Fin" },
{ 0x50, L"Abajo" },
{ 0x51, L"Avpág" },
{ 0x52, L"Ins" },
{ 0x53, L"Supr" },
{ 0x54, L"<ReactOS>" },
{ 0x55, L"Ayuda" },
{ 0x5b, L"Windows izq." },
{ 0x5c, L"Windows der." },
{ 0, NULL },
}
#define L(x)
Definition: ntvdm.h:50
#define NULL
Definition: types.h:112

Definition at line 480 of file kbdes.c.

◆ key_names

ROSDATA VSC_LPWSTR key_names[]

Definition at line 423 of file kbdes.c.

◆ key_to_chars_2mod

ROSDATA VK_TO_WCHARS2 key_to_chars_2mod[]
Initial value:
=
{
{ L'7', 0, {L'7', L'/'} },
{ L'8', 0, {L'8', L'('} },
{ L'9', 0, {L'9', L')'} },
{ L'0', 0, {L'0', L'='} },
{ VK_OEM_3, CAPLOK, {L'ñ', L'Ñ'} },
{ VK_OEM_6, 0, {L'¡', L'¿'} },
{ VK_OEM_4, 0, {0x27, L'?'} },
{ VK_OEM_COMMA, 0, {L',', L';'} },
{ VK_OEM_PERIOD, 0, {L'.', L':'} },
{ VK_OEM_MINUS, 0, {L'-', L'_'} },
{ VK_OEM_102, 0, {L'<', L'>'} },
{ VK_TAB, 0, {L'\t', L'\t'} },
{ VK_ADD, 0, {L'+', L'+'} },
{ VK_SUBTRACT, 0, {L'-', L'-'} },
{ VK_MULTIPLY, 0, {L'*', L'*'} },
{ VK_DIVIDE, 0, {L'/', L'/'} },
{ VK_ESCAPE, 0, {0x1b, 0x1b} },
{ VK_SPACE, 0, {L' ', L' '} },
{ 0, 0 }
}
#define VK_SUBTRACT
Definition: winuser.h:2232
#define VK_ADD
Definition: winuser.h:2230
#define VK_TAB
Definition: winuser.h:2179
#define VK_ESCAPE
Definition: winuser.h:2194
#define CAPLOK
Definition: kbd.h:118
#define VK_OEM_4
Definition: winuser.h:2297
#define L(x)
Definition: ntvdm.h:50
#define VK_MULTIPLY
Definition: winuser.h:2229
#define VK_OEM_6
Definition: winuser.h:2299
#define VK_OEM_3
Definition: winuser.h:2296
#define VK_SPACE
Definition: winuser.h:2199
#define VK_DIVIDE
Definition: winuser.h:2234

Definition at line 244 of file kbdes.c.

◆ key_to_chars_3mod

ROSDATA VK_TO_WCHARS3 key_to_chars_3mod[]

Definition at line 274 of file kbdes.c.

◆ key_to_chars_4mod

ROSDATA VK_TO_WCHARS4 key_to_chars_4mod[]
Initial value:
=
{
{ L'1', 0, {L'1', L'!', WCH_NONE, L'|'} },
{ L'2', 0, {L'2', L'"', WCH_NONE, L'@'} },
{ L'3', 0, {L'3', L'·', WCH_NONE, L'#'} },
{ L'4', 0, {L'4', L'$', WCH_NONE, WCH_DEAD} },
{ VK_EMPTY, 0, {WCH_NONE, WCH_NONE, WCH_NONE, L'~'} },
{ L'5', 0, {L'5', L'%', WCH_NONE, L'€'} },
{ L'6', 0, {L'6', L'&', WCH_NONE, L'¬'} },
{ L'E', CAPLOK, {L'e', L'E', 0x05, L'€'} },
{ VK_OEM_PLUS, 0, {L'+', L'*', WCH_NONE, L']'} },
{ VK_OEM_2, 0, {L'ç', L'Ç', WCH_NONE, L'}'} },
{ VK_OEM_7, 0, {WCH_DEAD, WCH_DEAD, WCH_NONE, L'{'} },
{ VK_EMPTY, 0, {L'´', L'¨', WCH_NONE, WCH_NONE} },
{ VK_OEM_1, 0, {WCH_DEAD, WCH_DEAD, WCH_NONE, L'['} },
{ VK_EMPTY, 0, {L'`', L'^', WCH_NONE, WCH_NONE} },
{ VK_OEM_5, 0, {L'º', L'ª', WCH_NONE, 0x5c} },
{ 0, 0 }
}
#define VK_OEM_5
Definition: winuser.h:2298
#define CAPLOK
Definition: kbd.h:118
#define WCH_NONE
Definition: kbd.h:113
#define L(x)
Definition: ntvdm.h:50
#define VK_OEM_7
Definition: winuser.h:2300
#define WCH_DEAD
Definition: kbd.h:114
#define VK_EMPTY
Definition: kbdes.c:34
#define VK_OEM_2
Definition: winuser.h:2295
#define VK_OEM_1
Definition: winuser.h:2288

Definition at line 309 of file kbdes.c.

◆ keyboard_layout_table

ROSDATA KBDTABLES keyboard_layout_table

Definition at line 517 of file kbdes.c.

Referenced by KbdLayerDescriptor().

◆ keypad_numbers

ROSDATA VK_TO_WCHARS1 keypad_numbers[]
Initial value:
=
{
{ VK_NUMPAD0, 0, {L'0'} },
{ VK_NUMPAD1, 0, {L'1'} },
{ VK_NUMPAD2, 0, {L'2'} },
{ VK_NUMPAD3, 0, {L'3'} },
{ VK_NUMPAD4, 0, {L'4'} },
{ VK_NUMPAD5, 0, {L'5'} },
{ VK_NUMPAD6, 0, {L'6'} },
{ VK_NUMPAD7, 0, {L'7'} },
{ VK_NUMPAD8, 0, {L'8'} },
{ VK_NUMPAD9, 0, {L'9'} },
{ VK_DECIMAL, 0, {L'.'} },
{ VK_BACK, 0, {L'\010'} },
{ 0, 0 }
}
#define VK_NUMPAD8
Definition: winuser.h:2227
#define VK_NUMPAD0
Definition: winuser.h:2219
#define VK_NUMPAD6
Definition: winuser.h:2225
#define VK_NUMPAD5
Definition: winuser.h:2224
#define VK_DECIMAL
Definition: winuser.h:2233
#define VK_NUMPAD9
Definition: winuser.h:2228
#define L(x)
Definition: ntvdm.h:50
#define VK_NUMPAD3
Definition: winuser.h:2222
#define VK_NUMPAD4
Definition: winuser.h:2223
#define VK_BACK
Definition: winuser.h:2178
#define VK_NUMPAD7
Definition: winuser.h:2226
#define VK_NUMPAD2
Definition: winuser.h:2221
#define VK_NUMPAD1
Definition: winuser.h:2220

Definition at line 333 of file kbdes.c.

◆ modifier_bits

ROSDATA MODIFIERS modifier_bits
Initial value:
=
{
6,
{
0,
1,
2,
2|1,
3
}
}
ROSDATA VK_TO_BIT modifier_keys[]
Definition: kbdes.c:221
#define SHFT_INVALID
Definition: kbd.h:19

Definition at line 229 of file kbdes.c.

◆ modifier_keys

ROSDATA VK_TO_BIT modifier_keys[]
Initial value:
=
{
{ 0, 0 }
}
#define KBDCTRL
Definition: kbd.h:15
#define KBDSHIFT
Definition: kbd.h:14
#define VK_MENU
Definition: winuser.h:2184
#define VK_SHIFT
Definition: winuser.h:2182
#define KBDALT
Definition: kbd.h:16
#define VK_CONTROL
Definition: winuser.h:2183

Definition at line 221 of file kbdes.c.

◆ scancode_to_vk

ROSDATA USHORT scancode_to_vk[]

Definition at line 39 of file kbdes.c.

◆ vk_to_wchar_master_table

ROSDATA VK_TO_WCHAR_TABLE vk_to_wchar_master_table[]
Initial value:
=
{
{ 0, 0, 0 }
}
ROSDATA VK_TO_WCHARS1 keypad_numbers[]
Definition: kbdes.c:333
#define vk_master(n, x)
Definition: kbdes.c:350
ROSDATA VK_TO_WCHARS2 key_to_chars_2mod[]
Definition: kbdes.c:244
ROSDATA VK_TO_WCHARS3 key_to_chars_3mod[]
Definition: kbdes.c:274
ROSDATA VK_TO_WCHARS4 key_to_chars_4mod[]
Definition: kbdes.c:309

Definition at line 352 of file kbdes.c.