ReactOS 0.4.17-dev-1190-g4c812f4
kbdnec.c File Reference
#include <windef.h>
#include <winuser.h>
#include <ndk/kbd.h>
Include dependency graph for kbdnec.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_OEM_NEC_EQUAL   0x92 /* '=' key on the NEC numpad */
 
#define KBDKANA   0x08
 
#define vk_master(n, x)   { (PVK_TO_WCHARS1)x, n, sizeof(x[0]) }
 

Functions

PKBDTABLES WINAPI KbdLayerDescriptor (VOID)
 
PKBDNLSTABLES WINAPI KbdNlsLayerDescriptor (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_WCHARS6 key_to_chars_6mod []
 
ROSDATA VK_TO_WCHARS8 key_to_chars_8mod []
 
ROSDATA VK_TO_WCHARS4 key_to_chars_4mod []
 
ROSDATA VK_TO_WCHARS4 keypad_numbers []
 
ROSDATA VK_TO_WCHAR_TABLE vk_to_wchar_master_table []
 
ROSDATA VSC_LPWSTR key_names []
 
ROSDATA VSC_LPWSTR extended_key_names []
 
ROSDATA VK_F vk_to_f []
 
ROSDATA USHORT mouse_vk []
 
ROSDATA KBDNLSTABLES nls_tables []
 
ROSDATA KBDTABLES_FE keyboard_layout_table
 

Macro Definition Documentation

◆ KBDKANA

#define KBDKANA   0x08

Definition at line 35 of file kbdnec.c.

◆ KMEXT

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

Definition at line 27 of file kbdnec.c.

◆ KNUMS

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

Definition at line 26 of file kbdnec.c.

◆ ROSDATA

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

Definition at line 20 of file kbdnec.c.

◆ VK_EMPTY

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

Definition at line 24 of file kbdnec.c.

◆ vk_master

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

Definition at line 322 of file kbdnec.c.

◆ VK_OEM_NEC_EQUAL

#define VK_OEM_NEC_EQUAL   0x92 /* '=' key on the NEC numpad */

Definition at line 30 of file kbdnec.c.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 8 of file kbdnec.c.

Function Documentation

◆ KbdLayerDescriptor()

PKBDTABLES WINAPI KbdLayerDescriptor ( VOID  )

Definition at line 555 of file kbdnec.c.

556{
558}
ROSDATA KBDTABLES_FE keyboard_layout_table
Definition: kbdnec.c:522
KBDTABLES Base
Definition: kbd.h:210

◆ KbdNlsLayerDescriptor()

PKBDNLSTABLES WINAPI KbdNlsLayerDescriptor ( VOID  )

Definition at line 560 of file kbdnec.c.

561{
562 return &nls_tables[0];
563}
ROSDATA KBDNLSTABLES nls_tables[]
Definition: kbdnec.c:515

Variable Documentation

◆ extcode0_to_vk

ROSDATA VSC_VK extcode0_to_vk[]
Initial value:
= {
{ 0x1C, VK_RETURN | KBDEXT },
{ 0x1D, VK_RCONTROL | KBDEXT },
{ 0x35, VK_DIVIDE | KBDEXT },
{ 0x37, VK_SNAPSHOT | KBDEXT },
{ 0x38, VK_EMPTY | KBDEXT },
{ 0x46, VK_CANCEL | KBDEXT },
{ 0x47, VK_HOME | KBDEXT | KBDSPECIAL },
{ 0x48, VK_UP | KBDEXT },
{ 0x49, VK_PRIOR | KBDEXT },
{ 0x4B, VK_LEFT | KBDEXT },
{ 0x4D, VK_RIGHT | KBDEXT },
{ 0x4F, VK_END | KBDEXT | KBDSPECIAL },
{ 0x50, VK_DOWN | KBDEXT },
{ 0x51, VK_NEXT | KBDEXT },
{ 0x52, VK_INSERT | KBDEXT },
{ 0x53, VK_DELETE | KBDEXT },
{ 0x5B, VK_LWIN | KBDEXT },
{ 0x5C, VK_RWIN | KBDEXT },
{ 0x5D, VK_APPS | KBDEXT },
{ 0, 0 },
}
#define KBDSPECIAL
Definition: kbd.h:12
#define KBDEXT
Definition: kbd.h:10
#define VK_EMPTY
Definition: kbdnec.c:24
#define VK_SNAPSHOT
Definition: winuser.h:2267
#define VK_APPS
Definition: winuser.h:2273
#define VK_CANCEL
Definition: winuser.h:2228
#define VK_UP
Definition: winuser.h:2261
#define VK_NEXT
Definition: winuser.h:2257
#define VK_RCONTROL
Definition: winuser.h:2321
#define VK_RETURN
Definition: winuser.h:2237
#define VK_END
Definition: winuser.h:2258
#define VK_HOME
Definition: winuser.h:2259
#define VK_LWIN
Definition: winuser.h:2271
#define VK_LEFT
Definition: winuser.h:2260
#define VK_RIGHT
Definition: winuser.h:2262
#define VK_DOWN
Definition: winuser.h:2263
#define VK_PRIOR
Definition: winuser.h:2256
#define VK_DELETE
Definition: winuser.h:2269
#define VK_DIVIDE
Definition: winuser.h:2290
#define VK_INSERT
Definition: winuser.h:2268
#define VK_RWIN
Definition: winuser.h:2272

Definition at line 171 of file kbdnec.c.

◆ extcode1_to_vk

ROSDATA VSC_VK extcode1_to_vk[]
Initial value:
= {
{ 0x1D, VK_PAUSE },
{ 0, 0 },
}
#define VK_PAUSE
Definition: winuser.h:2241

Definition at line 194 of file kbdnec.c.

◆ extended_key_names

ROSDATA VSC_LPWSTR extended_key_names[]
Initial value:
= {
{ 0x1c, L"Num Enter" },
{ 0x1d, L"Right Control" },
{ 0x35, L"Num /" },
{ 0x37, L"Prnt Scrn" },
{ 0x38, L"Right Alt" },
{ 0x45, L"Num Lock" },
{ 0x46, L"Break" },
{ 0x47, L"Home" },
{ 0x48, L"Up" },
{ 0x49, L"Page Up" },
{ 0x4b, L"Left" },
{ 0x4d, L"Right" },
{ 0x4f, L"End" },
{ 0x50, L"Down" },
{ 0x51, L"Page Down" },
{ 0x52, L"Insert" },
{ 0x53, L"Delete" },
{ 0x5b, L"Left Windows" },
{ 0x5c, L"Right Windows" },
{ 0x5d, L"Application" },
{ 0, NULL },
}
#define NULL
Definition: types.h:112
#define L(x)
Definition: resources.c:13

Definition at line 384 of file kbdnec.c.

◆ key_names

ROSDATA VSC_LPWSTR key_names[]

Definition at line 332 of file kbdnec.c.

◆ key_to_chars_4mod

ROSDATA VK_TO_WCHARS4 key_to_chars_4mod[]

Definition at line 256 of file kbdnec.c.

◆ key_to_chars_6mod

ROSDATA VK_TO_WCHARS6 key_to_chars_6mod[]
Initial value:
= {
{ VK_BACK , 0 , { 0x0008, 0x0008, 0x0008, 0x0008, 0x007f, 0x007f } },
{ VK_CANCEL , 0 , { 0x0003, 0x0003, 0x0003, 0x0003, 0x0003, 0x0003 } },
{ VK_ESCAPE , 0 , { 0x001b, 0x001b, 0x001b, 0x001b, 0x001b, 0x001b } },
{ VK_OEM_3 , KANALOK , { '@', '~', 0xff9e, 0xff9e, 0x0000, 0x0000 } },
{ VK_OEM_4 , KANALOK , { '[', '{', 0xff9f, 0xff62, 0x001b, 0x001b } },
{ VK_OEM_5 , KANALOK , { '\\', '|', 0xff70, 0xff70, 0x001c, 0x001c } },
{ VK_OEM_6 , KANALOK , { ']', '}', 0xff91, 0xff63, 0x001d, 0x001d } },
{ VK_OEM_7 , KANALOK , { '^', '`', 0xff8d, 0xff8d, 0x001e, 0x001e } },
{ VK_OEM_8 , KANALOK , { WCH_NONE, '_', 0xff9b, 0xff9b, 0x001f, 0x001f } },
{ VK_RETURN , 0 , { 0x000d, 0x000d, 0x000d, 0x000d, 0x000a, 0x000a } },
{ VK_SPACE , 0 , { ' ', ' ', ' ', ' ', ' ', ' ' } },
{ 0, 0 }
}
#define WCH_NONE
Definition: kbd.h:115
#define KANALOK
Definition: kbd.h:123
#define VK_OEM_5
Definition: winuser.h:2354
#define VK_OEM_7
Definition: winuser.h:2356
#define VK_SPACE
Definition: winuser.h:2255
#define VK_OEM_4
Definition: winuser.h:2353
#define VK_OEM_8
Definition: winuser.h:2357
#define VK_OEM_6
Definition: winuser.h:2355
#define VK_BACK
Definition: winuser.h:2234
#define VK_ESCAPE
Definition: winuser.h:2250
#define VK_OEM_3
Definition: winuser.h:2352

Definition at line 232 of file kbdnec.c.

◆ key_to_chars_8mod

ROSDATA VK_TO_WCHARS8 key_to_chars_8mod[]
Initial value:
= {
{ '2' , KANALOK , { '2', '"', 0xff8c, 0xff8c, WCH_NONE, WCH_NONE, 0x0000, 0x0000 } },
{ '6' , KANALOK , { '6', '&', 0xff75, 0xff6b, WCH_NONE, WCH_NONE, 0x001e, 0x001e } },
{ VK_OEM_MINUS , KANALOK , { '-', '=', 0xff8e, 0xff8e, WCH_NONE, WCH_NONE, 0x001f, 0x001f } },
{ 0, 0 }
}

Definition at line 248 of file kbdnec.c.

◆ keyboard_layout_table

ROSDATA KBDTABLES_FE keyboard_layout_table

Definition at line 522 of file kbdnec.c.

Referenced by KbdLayerDescriptor().

◆ keypad_numbers

ROSDATA VK_TO_WCHARS4 keypad_numbers[]
Initial value:
= {
{ VK_NUMPAD0 , 0 , { '0', WCH_NONE, '0', WCH_NONE } },
{ VK_NUMPAD1 , 0 , { '1', WCH_NONE, '1', WCH_NONE } },
{ VK_NUMPAD2 , 0 , { '2', WCH_NONE, '2', WCH_NONE } },
{ VK_NUMPAD3 , 0 , { '3', WCH_NONE, '3', WCH_NONE } },
{ VK_NUMPAD4 , 0 , { '4', WCH_NONE, '4', WCH_NONE } },
{ VK_NUMPAD5 , 0 , { '5', WCH_NONE, '5', WCH_NONE } },
{ VK_NUMPAD6 , 0 , { '6', WCH_NONE, '6', WCH_NONE } },
{ VK_NUMPAD7 , 0 , { '7', WCH_NONE, '7', WCH_NONE } },
{ VK_NUMPAD8 , 0 , { '8', WCH_NONE, '8', WCH_NONE } },
{ VK_NUMPAD9 , 0 , { '9', WCH_NONE, '9', WCH_NONE } },
{ 0, 0 }
}
#define VK_NUMPAD3
Definition: winuser.h:2278
#define VK_NUMPAD1
Definition: winuser.h:2276
#define VK_NUMPAD2
Definition: winuser.h:2277
#define VK_NUMPAD4
Definition: winuser.h:2279
#define VK_NUMPAD0
Definition: winuser.h:2275
#define VK_NUMPAD6
Definition: winuser.h:2281
#define VK_NUMPAD9
Definition: winuser.h:2284
#define VK_NUMPAD5
Definition: winuser.h:2280
#define VK_NUMPAD7
Definition: winuser.h:2282
#define VK_NUMPAD8
Definition: winuser.h:2283

Definition at line 308 of file kbdnec.c.

◆ modifier_bits

ROSDATA MODIFIERS modifier_bits
Initial value:
= {
11,
{
0,
1,
4,
6,
2,
3,
5,
7
}
}
#define SHFT_INVALID
Definition: kbd.h:21
ROSDATA VK_TO_BIT modifier_keys[]
Definition: kbdnec.c:199

Definition at line 212 of file kbdnec.c.

◆ modifier_keys

ROSDATA VK_TO_BIT modifier_keys[]
Initial value:
= {
{ 0, 0 }
}
#define KBDALT
Definition: kbd.h:18
#define KBDCTRL
Definition: kbd.h:17
#define KBDSHIFT
Definition: kbd.h:16
#define VK_CONTROL
Definition: winuser.h:2239
#define VK_SHIFT
Definition: winuser.h:2238
#define VK_MENU
Definition: winuser.h:2240

Definition at line 199 of file kbdnec.c.

◆ mouse_vk

ROSDATA USHORT mouse_vk[]
Initial value:
= {
}
#define VK_CLEAR
Definition: winuser.h:2236
#define VK_MULTIPLY
Definition: winuser.h:2285
#define VK_ADD
Definition: winuser.h:2286
#define VK_SUBTRACT
Definition: winuser.h:2288

Definition at line 491 of file kbdnec.c.

◆ nls_tables

ROSDATA KBDNLSTABLES nls_tables[]
Initial value:
= {
}
#define RTL_NUMBER_OF(x)
Definition: RtlRegistry.c:12
ROSDATA VK_F vk_to_f[]
Definition: kbdnec.c:410
ROSDATA USHORT mouse_vk[]
Definition: kbdnec.c:491

Definition at line 515 of file kbdnec.c.

Referenced by KbdNlsLayerDescriptor().

◆ scancode_to_vk

ROSDATA USHORT scancode_to_vk[]

Definition at line 40 of file kbdnec.c.

◆ vk_to_f

ROSDATA VK_F vk_to_f[]

Definition at line 410 of file kbdnec.c.

◆ vk_to_wchar_master_table

ROSDATA VK_TO_WCHAR_TABLE vk_to_wchar_master_table[]
Initial value:
= {
{ 0, 0, 0 }
}
ROSDATA VK_TO_WCHARS4 keypad_numbers[]
Definition: kbdnec.c:308
ROSDATA VK_TO_WCHARS4 key_to_chars_4mod[]
Definition: kbdnec.c:256
#define vk_master(n, x)
Definition: kbdnec.c:322
ROSDATA VK_TO_WCHARS8 key_to_chars_8mod[]
Definition: kbdnec.c:248
ROSDATA VK_TO_WCHARS6 key_to_chars_6mod[]
Definition: kbdnec.c:232

Definition at line 324 of file kbdnec.c.