ReactOS 0.4.15-dev-5669-g09dde2c
kbdsp.c File Reference
#include <stdarg.h>
#include <windef.h>
#include <winuser.h>
#include <ndk/kbd.h>
Include dependency graph for kbdsp.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 358 of file kbdsp.c.

◆ KMEXT

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

Definition at line 37 of file kbdsp.c.

◆ KNUMS

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

Definition at line 36 of file kbdsp.c.

◆ ROSDATA

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

Definition at line 30 of file kbdsp.c.

◆ VK_EMPTY

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

Definition at line 34 of file kbdsp.c.

◆ vk_master

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

Definition at line 347 of file kbdsp.c.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 17 of file kbdsp.c.

Function Documentation

◆ KbdLayerDescriptor()

PKBDTABLES WINAPI KbdLayerDescriptor ( VOID  )

Definition at line 547 of file kbdsp.c.

548{
549 return &keyboard_layout_table;
550}
ROSDATA KBDTABLES keyboard_layout_table
Definition: kbdsp.c:514

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 NULL
Definition: types.h:112
#define L(x)
Definition: ntvdm.h:50

Definition at line 504 of file kbdsp.c.

◆ deadkey

ROSDATA DEADKEY deadkey[]

Definition at line 359 of file kbdsp.c.

◆ extcode0_to_vk

ROSDATA VSC_VK extcode0_to_vk[]

Definition at line 170 of file kbdsp.c.

◆ extcode1_to_vk

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

Definition at line 213 of file kbdsp.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 },
}

Definition at line 477 of file kbdsp.c.

◆ key_names

ROSDATA VSC_LPWSTR key_names[]

Definition at line 420 of file kbdsp.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 CAPLOK
Definition: kbd.h:118
#define VK_TAB
Definition: winuser.h:2189
#define VK_MULTIPLY
Definition: winuser.h:2239
#define VK_SPACE
Definition: winuser.h:2209
#define VK_OEM_4
Definition: winuser.h:2307
#define VK_OEM_6
Definition: winuser.h:2309
#define VK_ADD
Definition: winuser.h:2240
#define VK_DIVIDE
Definition: winuser.h:2244
#define VK_ESCAPE
Definition: winuser.h:2204
#define VK_OEM_3
Definition: winuser.h:2306
#define VK_SUBTRACT
Definition: winuser.h:2242

Definition at line 241 of file kbdsp.c.

◆ key_to_chars_3mod

ROSDATA VK_TO_WCHARS3 key_to_chars_3mod[]

Definition at line 271 of file kbdsp.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 WCH_DEAD
Definition: kbd.h:114
#define WCH_NONE
Definition: kbd.h:113
#define VK_EMPTY
Definition: kbdsp.c:34
#define VK_OEM_5
Definition: winuser.h:2308
#define VK_OEM_7
Definition: winuser.h:2310
#define VK_OEM_2
Definition: winuser.h:2305
#define VK_OEM_1
Definition: winuser.h:2298

Definition at line 306 of file kbdsp.c.

◆ keyboard_layout_table

ROSDATA KBDTABLES keyboard_layout_table

Definition at line 514 of file kbdsp.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_NUMPAD3
Definition: winuser.h:2232
#define VK_NUMPAD1
Definition: winuser.h:2230
#define VK_NUMPAD2
Definition: winuser.h:2231
#define VK_NUMPAD4
Definition: winuser.h:2233
#define VK_NUMPAD0
Definition: winuser.h:2229
#define VK_NUMPAD6
Definition: winuser.h:2235
#define VK_NUMPAD9
Definition: winuser.h:2238
#define VK_BACK
Definition: winuser.h:2188
#define VK_NUMPAD5
Definition: winuser.h:2234
#define VK_NUMPAD7
Definition: winuser.h:2236
#define VK_NUMPAD8
Definition: winuser.h:2237
#define VK_DECIMAL
Definition: winuser.h:2243

Definition at line 330 of file kbdsp.c.

◆ modifier_bits

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

Definition at line 226 of file kbdsp.c.

◆ modifier_keys

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

Definition at line 218 of file kbdsp.c.

◆ scancode_to_vk

ROSDATA USHORT scancode_to_vk[]

Definition at line 39 of file kbdsp.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: kbdsp.c:330
ROSDATA VK_TO_WCHARS4 key_to_chars_4mod[]
Definition: kbdsp.c:306
#define vk_master(n, x)
Definition: kbdsp.c:347
ROSDATA VK_TO_WCHARS3 key_to_chars_3mod[]
Definition: kbdsp.c:271
ROSDATA VK_TO_WCHARS2 key_to_chars_2mod[]
Definition: kbdsp.c:241

Definition at line 349 of file kbdsp.c.