ReactOS 0.4.17-dev-1071-gb2116d0
kbd106.c File Reference
#include <windef.h>
#include <winuser.h>
#include <ndk/kbd.h>
Include dependency graph for kbd106.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 
#define ROSDATA   static __attribute__((section(".data")))
 
#define KBDKANA   0x08 /* Kana modifier bit */
 
#define VK_EMPTY   0xff /* The non-existent VK */
 
#define VK_PA_FC   0xfc /* Unnamed VK used by a few rarely used scancodes */
 
#define VK_PA_F9   0xf9
 
#define VK_OEM_EC   0xec /* Unnamed VK used by scancode 0x7f */
 
#define KNUMS   (KBDNUMPAD | KBDSPECIAL) /* Special + number pad */
 
#define KMEXT   (KBDEXT | KBDMULTIVK) /* Multi + ext */
 
#define CAPKANA   (CAPLOK | KANALOK) /* letters: Caps lock + kana lock */
 
#define vk_master(n, x)   { (PVK_TO_WCHARS1)x, n, sizeof(x[0]) }
 
#define NLS_NONE   { KBDNLS_NULL, 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 KBDTABLES_FE keyboard_layout_table
 
ROSDATA VK_F key_vk_to_f []
 
ROSDATA KBDNLSTABLES KbdNlsTables
 

Macro Definition Documentation

◆ CAPKANA

#define CAPKANA   (CAPLOK | KANALOK) /* letters: Caps lock + kana lock */

Definition at line 39 of file kbd106.c.

◆ KBDKANA

#define KBDKANA   0x08 /* Kana modifier bit */

Definition at line 26 of file kbd106.c.

◆ KMEXT

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

Definition at line 36 of file kbd106.c.

◆ KNUMS

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

Definition at line 35 of file kbd106.c.

◆ NLS_NONE

#define NLS_NONE   { KBDNLS_NULL, 0 }

Definition at line 436 of file kbd106.c.

◆ ROSDATA

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

Definition at line 21 of file kbd106.c.

◆ VK_EMPTY

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

Definition at line 29 of file kbd106.c.

◆ vk_master

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

Definition at line 310 of file kbd106.c.

◆ VK_OEM_EC

#define VK_OEM_EC   0xec /* Unnamed VK used by scancode 0x7f */

Definition at line 33 of file kbd106.c.

◆ VK_PA_F9

#define VK_PA_F9   0xf9

Definition at line 32 of file kbd106.c.

◆ VK_PA_FC

#define VK_PA_FC   0xfc /* Unnamed VK used by a few rarely used scancodes */

Definition at line 31 of file kbd106.c.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 9 of file kbd106.c.

Function Documentation

◆ KbdLayerDescriptor()

PKBDTABLES WINAPI KbdLayerDescriptor ( VOID  )

Definition at line 533 of file kbd106.c.

533 {
535}
ROSDATA KBDTABLES_FE keyboard_layout_table
Definition: kbd106.c:398
KBDTABLES Base
Definition: kbd.h:210

◆ KbdNlsLayerDescriptor()

PKBDNLSTABLES WINAPI KbdNlsLayerDescriptor ( VOID  )

Definition at line 537 of file kbd106.c.

537 {
538 return &KbdNlsTables;
539}
ROSDATA KBDNLSTABLES KbdNlsTables
Definition: kbd106.c:524

Variable Documentation

◆ extcode0_to_vk

ROSDATA VSC_VK extcode0_to_vk[]

Definition at line 134 of file kbd106.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 176 of file kbd106.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 371 of file kbd106.c.

◆ KbdNlsTables

ROSDATA KBDNLSTABLES KbdNlsTables
Initial value:
= {
0,
0,
0,
}
#define RTL_NUMBER_OF(x)
Definition: RtlRegistry.c:12
ROSDATA VK_F key_vk_to_f[]
Definition: kbd106.c:443

Definition at line 524 of file kbd106.c.

Referenced by KbdNlsLayerDescriptor().

◆ key_names

ROSDATA VSC_LPWSTR key_names[]

Definition at line 323 of file kbd106.c.

◆ key_to_chars_4mod

ROSDATA VK_TO_WCHARS4 key_to_chars_4mod[]

Definition at line 238 of file kbd106.c.

◆ key_to_chars_6mod

ROSDATA VK_TO_WCHARS6 key_to_chars_6mod[]
Initial value:
= {
{ VK_BACK, 0, {0x08, 0x08, 0x08, 0x08, 0x7f, 0x7f} },
{ VK_CANCEL, 0, {0x03, 0x03, 0x03, 0x03, 0x03, 0x03} },
{ VK_ESCAPE, 0, {0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b} },
{ VK_OEM_4, KANALOK, {'[', '{', 0xff9f, 0xff62, 0x1b, 0x1b} },
{ VK_OEM_5, KANALOK, {'\\', '|', 0xff70, 0xff70, 0x1c, 0x1c} },
{ VK_OEM_102, KANALOK, {'\\', '_', 0xff9b, 0xff9b, 0x1c, 0x1c} },
{ VK_OEM_6, KANALOK, {']', '}', 0xff91, 0xff63, 0x1d, 0x1d} },
{ VK_RETURN, 0, {'\r', '\r', '\r', '\r', '\n', '\n'} },
{ VK_SPACE, 0, {' ', ' ', ' ', ' ', ' ', ' '} },
{ 0, 0 }
}
#define KANALOK
Definition: kbd.h:123
#define VK_OEM_5
Definition: winuser.h:2354
#define VK_SPACE
Definition: winuser.h:2255
#define VK_OEM_4
Definition: winuser.h:2353
#define VK_CANCEL
Definition: winuser.h:2228
#define VK_RETURN
Definition: winuser.h:2237
#define VK_OEM_6
Definition: winuser.h:2355
#define VK_BACK
Definition: winuser.h:2234
#define VK_ESCAPE
Definition: winuser.h:2250

Definition at line 218 of file kbd106.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 }
}
#define WCH_NONE
Definition: kbd.h:115

Definition at line 231 of file kbd106.c.

◆ key_vk_to_f

ROSDATA VK_F key_vk_to_f[]

Definition at line 443 of file kbd106.c.

◆ keyboard_layout_table

ROSDATA KBDTABLES_FE keyboard_layout_table

Definition at line 398 of file kbd106.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 296 of file kbd106.c.

◆ modifier_bits

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

Definition at line 196 of file kbd106.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 184 of file kbd106.c.

◆ scancode_to_vk

ROSDATA USHORT scancode_to_vk[]

Definition at line 44 of file kbd106.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: kbd106.c:296
ROSDATA VK_TO_WCHARS4 key_to_chars_4mod[]
Definition: kbd106.c:238
#define vk_master(n, x)
Definition: kbd106.c:310
ROSDATA VK_TO_WCHARS8 key_to_chars_8mod[]
Definition: kbd106.c:231
ROSDATA VK_TO_WCHARS6 key_to_chars_6mod[]
Definition: kbd106.c:218

Definition at line 312 of file kbd106.c.