ReactOS 0.4.17-dev-1190-g4c812f4
kbdnecnt.c File Reference
#include <windef.h>
#include <winuser.h>
#include <ndk/kbd.h>
Include dependency graph for kbdnecnt.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 
#define ROSDATA   static __attribute__((section(".data")))
 
#define KBDKANA   0x08
 
#define VK_EMPTY   0xff
 
#define VK_OEM_FJ_JISHO   0x92
 
#define KNUMS   (KBDNUMPAD | KBDSPECIAL)
 
#define CAPKANA   (CAPLOK | KANALOK)
 
#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_WCHARS4 key_to_chars_4mod []
 
ROSDATA VK_TO_WCHARS6 key_to_chars_6mod []
 
ROSDATA VK_TO_WCHARS8 key_to_chars_8mod []
 
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 KBDTABLES_FE keyboard_layout_table
 
ROSDATA VK_F key_vk_to_f []
 
ROSDATA USHORT mouse_vkeys []
 
ROSDATA KBDNLSTABLES KbdNlsTables
 

Macro Definition Documentation

◆ CAPKANA

#define CAPKANA   (CAPLOK | KANALOK)

Definition at line 30 of file kbdnecnt.c.

◆ KBDKANA

#define KBDKANA   0x08

Definition at line 26 of file kbdnecnt.c.

◆ KNUMS

#define KNUMS   (KBDNUMPAD | KBDSPECIAL)

Definition at line 29 of file kbdnecnt.c.

◆ ROSDATA

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

Definition at line 22 of file kbdnecnt.c.

◆ VK_EMPTY

#define VK_EMPTY   0xff

Definition at line 27 of file kbdnecnt.c.

◆ vk_master

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

Definition at line 227 of file kbdnecnt.c.

◆ VK_OEM_FJ_JISHO

#define VK_OEM_FJ_JISHO   0x92

Definition at line 28 of file kbdnecnt.c.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 8 of file kbdnecnt.c.

Function Documentation

◆ KbdLayerDescriptor()

PKBDTABLES WINAPI KbdLayerDescriptor ( VOID  )

Definition at line 466 of file kbdnecnt.c.

466 {
468}
ROSDATA KBDTABLES_FE keyboard_layout_table
Definition: kbdnecnt.c:314
KBDTABLES Base
Definition: kbd.h:210

◆ KbdNlsLayerDescriptor()

PKBDNLSTABLES WINAPI KbdNlsLayerDescriptor ( VOID  )

Definition at line 470 of file kbdnecnt.c.

470 {
471 return &KbdNlsTables;
472}
ROSDATA KBDNLSTABLES KbdNlsTables
Definition: kbdnecnt.c:457

Variable Documentation

◆ extcode0_to_vk

ROSDATA VSC_VK extcode0_to_vk[]
Initial value:
= {
{ 0x1C, VK_RETURN | KBDEXT },
{ 0x1D, VK_KANA | KBDEXT | KBDSPECIAL },
{ 0x35, VK_DIVIDE | KBDEXT },
{ 0x37, VK_SNAPSHOT | KBDEXT },
{ 0x38, VK_KANJI | KBDEXT | KBDSPECIAL },
{ 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_KANA
Definition: winuser.h:2243
#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_RETURN
Definition: winuser.h:2237
#define VK_END
Definition: winuser.h:2258
#define VK_HOME
Definition: winuser.h:2259
#define VK_KANJI
Definition: winuser.h:2249
#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 73 of file kbdnecnt.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 96 of file kbdnecnt.c.

◆ extended_key_names

ROSDATA VSC_LPWSTR extended_key_names[]
Initial value:
= {
{ 0x1c, L"Num Enter" },
{ 0x1d, L"\uFF76\uFF85" },
{ 0x35, L"Num /" },
{ 0x37, L"COPY" },
{ 0x38, L"XFER" },
{ 0x45, L"Num Lock" },
{ 0x46, L"STOP" },
{ 0x47, L"CLR" },
{ 0x48, L"UP" },
{ 0x49, L"ROLL DOWN" },
{ 0x4b, L"LEFT" },
{ 0x4d, L"RIGHT" },
{ 0x4f, L"HELP" },
{ 0x50, L"DOWN" },
{ 0x51, L"ROLL UP" },
{ 0x52, L"INS" },
{ 0x53, L"DEL" },
{ 0x54, L"<00>" },
{ 0x56, L"HELP" },
{ 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 288 of file kbdnecnt.c.

◆ KbdNlsTables

ROSDATA KBDNLSTABLES KbdNlsTables
Initial value:
= {
0x0d,
0x02,
}
#define RTL_NUMBER_OF(x)
Definition: RtlRegistry.c:12
ROSDATA VK_F key_vk_to_f[]
Definition: kbdnecnt.c:333
ROSDATA USHORT mouse_vkeys[]
Definition: kbdnecnt.c:451

Definition at line 457 of file kbdnecnt.c.

Referenced by KbdNlsLayerDescriptor().

◆ key_names

ROSDATA VSC_LPWSTR key_names[]

Definition at line 237 of file kbdnecnt.c.

◆ key_to_chars_4mod

ROSDATA VK_TO_WCHARS4 key_to_chars_4mod[]

Definition at line 129 of file kbdnecnt.c.

◆ key_to_chars_6mod

ROSDATA VK_TO_WCHARS6 key_to_chars_6mod[]
Initial value:
= {
{ VK_BACK, 0, {0x08, 0x08, 0x08, 0x08, 0x007f, 0x007f} },
{ VK_CANCEL, 0, {0x03, 0x03, 0x03, 0x03, 0x03, 0x03} },
{ VK_ESCAPE, 0, {0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b} },
{ VK_OEM_3, KANALOK, {'@', '~', 0xff9e, 0xff9e, 0x00, 0x00} },
{ VK_OEM_4, KANALOK, {'[', '{', 0xff9f, 0xff62, 0x1b, 0x1b} },
{ VK_OEM_4, KANALOK, {'[', '{', 0xff9f, 0xff62, 0x1b, 0x1b} },
{ VK_OEM_5, KANALOK, {'\\', '|', 0xff70, 0xff70, 0x1c, 0x1c} },
{ VK_OEM_6, KANALOK, {']', '}', 0xff91, 0xff63, 0x1d, 0x1d} },
{ VK_OEM_7, KANALOK, {'^', '`', 0xff8d, 0xff8d, 0x1e, 0x1e} },
{ VK_OEM_8, KANALOK, {WCH_NONE, '_', 0xff9b, 0xff9b, 0x1f, 0x1f} },
{ VK_RETURN, 0, {0x0d, 0x0d, 0x0d, 0x0d, 0x0a, 0x0a} },
{ 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 190 of file kbdnecnt.c.

◆ key_to_chars_8mod

ROSDATA VK_TO_WCHARS8 key_to_chars_8mod[]
Initial value:
= {
{ '2', KANALOK, {'2', '\"', 0xff8c, 0xff8c, WCH_NONE, WCH_NONE, 0x00, 0x00} },
{ '6', KANALOK, {'6', '&', 0xff75, 0xff6b, WCH_NONE, WCH_NONE, 0x1e, 0x1e} },
{ VK_OEM_MINUS, KANALOK, {'-', '=', 0xff8e, 0xff8e, WCH_NONE, WCH_NONE, 0x1f, 0x1f} },
{ 0, 0 }
}

Definition at line 206 of file kbdnecnt.c.

◆ key_vk_to_f

ROSDATA VK_F key_vk_to_f[]

Definition at line 333 of file kbdnecnt.c.

◆ keyboard_layout_table

ROSDATA KBDTABLES_FE keyboard_layout_table
Initial value:
= {
{
NULL,
MAKELONG(0, 0),
0, 0, NULL
},
7,
0x0d02
}
ROSDATA VSC_LPWSTR extended_key_names[]
Definition: kbdnecnt.c:288
ROSDATA USHORT scancode_to_vk[]
Definition: kbdnecnt.c:32
ROSDATA MODIFIERS modifier_bits
Definition: kbdnecnt.c:110
ROSDATA VSC_LPWSTR key_names[]
Definition: kbdnecnt.c:237
ROSDATA VSC_VK extcode0_to_vk[]
Definition: kbdnecnt.c:73
ROSDATA VK_TO_WCHAR_TABLE vk_to_wchar_master_table[]
Definition: kbdnecnt.c:229
ROSDATA VSC_VK extcode1_to_vk[]
Definition: kbdnecnt.c:96
#define MAKELONG(a, b)
Definition: typedefs.h:249

Definition at line 314 of file kbdnecnt.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 213 of file kbdnecnt.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: kbdnecnt.c:101

Definition at line 110 of file kbdnecnt.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 KBDKANA
Definition: kbdnecnt.c:26
#define VK_CONTROL
Definition: winuser.h:2239
#define VK_SHIFT
Definition: winuser.h:2238
#define VK_MENU
Definition: winuser.h:2240

Definition at line 101 of file kbdnecnt.c.

◆ mouse_vkeys

ROSDATA USHORT mouse_vkeys[]
Initial value:

Definition at line 451 of file kbdnecnt.c.

◆ scancode_to_vk

ROSDATA USHORT scancode_to_vk[]

Definition at line 32 of file kbdnecnt.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: kbdnecnt.c:213
ROSDATA VK_TO_WCHARS4 key_to_chars_4mod[]
Definition: kbdnecnt.c:129
#define vk_master(n, x)
Definition: kbdnecnt.c:227
ROSDATA VK_TO_WCHARS8 key_to_chars_8mod[]
Definition: kbdnecnt.c:206
ROSDATA VK_TO_WCHARS6 key_to_chars_6mod[]
Definition: kbdnecnt.c:190

Definition at line 229 of file kbdnecnt.c.