ReactOS 0.4.17-dev-1421-g4623072
kbdhept.c File Reference
#include <windef.h>
#include <winuser.h>
#include <ndk/kbd.h>
Include dependency graph for kbdhept.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 
#define ROSDATA   static __attribute__((section(".data")))
 
#define VK_EMPTY   0xff
 
#define KNUMS   (KBDNUMPAD | KBDSPECIAL)
 
#define KMEXT   (KBDEXT | KBDMULTIVK)
 
#define DEADTRANS(ch, base, accent, flags)   { MAKELONG(base, accent), ch, flags }
 
#define CAPAGR   (CAPLOK | CAPLOKALTGR)
 
#define vk_master(n, x)   { (PVK_TO_WCHARS1)x, n, sizeof(x[0]) }
 

Functions

PKBDTABLES WINAPI KbdLayerDescriptor (VOID)
 

Variables

ROSDATA USHORT scancode_to_vk [0x7f]
 
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_WCHARS5 key_to_chars_5mod []
 
ROSDATA VK_TO_WCHARS6 key_to_chars_6mod []
 
ROSDATA VK_TO_WCHARS1 keypad_numbers []
 
ROSDATA VK_TO_WCHAR_TABLE vk_to_wchar_master_table []
 
ROSDATA DEADKEY dead_keys []
 
ROSDATA DEADKEY_LPWSTR dead_key_names []
 
ROSDATA VSC_LPWSTR key_names []
 
ROSDATA VSC_LPWSTR extended_key_names []
 
ROSDATA KBDTABLES keyboard_layout_table
 

Macro Definition Documentation

◆ CAPAGR

#define CAPAGR   (CAPLOK | CAPLOKALTGR)

Definition at line 146 of file kbdhept.c.

◆ DEADTRANS

#define DEADTRANS (   ch,
  base,
  accent,
  flags 
)    { MAKELONG(base, accent), ch, flags }

Definition at line 32 of file kbdhept.c.

◆ KMEXT

#define KMEXT   (KBDEXT | KBDMULTIVK)

Definition at line 28 of file kbdhept.c.

◆ KNUMS

#define KNUMS   (KBDNUMPAD | KBDSPECIAL)

Definition at line 27 of file kbdhept.c.

◆ ROSDATA

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

Definition at line 22 of file kbdhept.c.

◆ VK_EMPTY

#define VK_EMPTY   0xff

Definition at line 26 of file kbdhept.c.

◆ vk_master

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

Definition at line 252 of file kbdhept.c.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 8 of file kbdhept.c.

Function Documentation

◆ KbdLayerDescriptor()

PKBDTABLES WINAPI KbdLayerDescriptor ( VOID  )

Definition at line 728 of file kbdhept.c.

728 {
729 return &keyboard_layout_table;
730}
ROSDATA KBDTABLES keyboard_layout_table
Definition: kbdhept.c:713

Variable Documentation

◆ dead_key_names

ROSDATA DEADKEY_LPWSTR dead_key_names[]
Initial value:
= {
L"\x0384" L"TONOS",
L"\x00a8" L"DIALYTIKA",
L"\x0385" L"DIALYTIKA TONOS",
}
#define NULL
Definition: types.h:112
#define L(x)
Definition: resources.c:13

Definition at line 623 of file kbdhept.c.

◆ dead_keys

ROSDATA DEADKEY dead_keys[]

Definition at line 265 of file kbdhept.c.

◆ extcode0_to_vk

ROSDATA VSC_VK extcode0_to_vk[]

Definition at line 71 of file kbdhept.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 113 of file kbdhept.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" },
{ 0x54, L"<00>" },
{ 0x56, L"Help" },
{ 0x5b, L"Left Windows" },
{ 0x5c, L"Right Windows" },
{ 0x5d, L"Application" },
{ 0, NULL }
}

Definition at line 686 of file kbdhept.c.

◆ key_names

ROSDATA VSC_LPWSTR key_names[]

Definition at line 631 of file kbdhept.c.

◆ key_to_chars_2mod

ROSDATA VK_TO_WCHARS2 key_to_chars_2mod[]

Definition at line 148 of file kbdhept.c.

◆ key_to_chars_3mod

ROSDATA VK_TO_WCHARS3 key_to_chars_3mod[]
Initial value:
= {
{ '1', 0, { '1', '!', 0x3da } },
{ '4', 0, { '4', '$', 0xa3 } },
{ '5', 0, { '5', '%', 0xa7 } },
{ '8', 0, { '8', '*', 0xa4 } },
{ '9', 0, { '9', '(', 0xa6 } },
{ '0', 0, { '0', ')', 0xb0 } },
{ 'Q', 0, { WCH_DEAD, WCH_DEAD, WCH_DEAD } },
{ VK_EMPTY, 0, { ';', ':', 0x1ffd } },
{ 'E', CAPLOK, { 0x3b5, 0x395, 0x20ac } },
{ 'R', CAPLOK, { 0x3c1, 0x3a1, 0xae } },
{ 'Y', CAPLOK, { 0x3c5, 0x3a5, 0xa5 } },
{ VK_EMPTY, 0, { 0x384, 0xa8, 0x385 } },
{ 'C', CAPLOK, { 0x3c8, 0x3a8, 0xa9 } },
{ 0, 0 }
}
#define WCH_DEAD
Definition: kbd.h:170
#define CAPLOK
Definition: kbd.h:174
#define VK_EMPTY
Definition: kbdhept.c:26
#define VK_OEM_1
Definition: winuser.h:2344

Definition at line 183 of file kbdhept.c.

◆ key_to_chars_4mod

ROSDATA VK_TO_WCHARS4 key_to_chars_4mod[]
Initial value:
= {
{ '3', 0, { '3', '#', 0x3e0, 0xb3 } },
{ VK_OEM_PLUS, 0, { WCH_DEAD, WCH_DEAD, WCH_DEAD, WCH_DEAD } },
{ VK_EMPTY, 0, { '=', '+', 0xbd, 0x1fdf } },
{ VK_EMPTY, 0, { '/', '?', 0x1fbe, 0x1fde } },
{ 0, 0 }
}
#define VK_OEM_2
Definition: winuser.h:2351

Definition at line 201 of file kbdhept.c.

◆ key_to_chars_5mod

ROSDATA VK_TO_WCHARS5 key_to_chars_5mod[]
Initial value:
= {
{ VK_OEM_4, 0, { WCH_DEAD, WCH_DEAD, WCH_DEAD, WCH_NONE, 0x1b } },
{ VK_EMPTY, 0, { '[', '{', 0xab, WCH_NONE, WCH_NONE } },
{ VK_OEM_6, 0, { WCH_DEAD, WCH_DEAD, WCH_DEAD, 0x387, 0x1d } },
{ VK_EMPTY, 0, { ']', '}', 0xbb, WCH_NONE, WCH_NONE } },
{ VK_OEM_5, 0, { WCH_DEAD, WCH_DEAD, WCH_DEAD, WCH_DEAD, 0x1c } },
{ VK_EMPTY, 0, { '\\', '|', 0xac, 0x1fdd, WCH_NONE } },
{ VK_OEM_7, 0, { WCH_DEAD, WCH_DEAD, WCH_DEAD, WCH_DEAD, 0x1c } },
{ VK_EMPTY, 0, { '\'', '"', 0x1fbf, 0x1ffe, WCH_NONE } },
{ VK_OEM_102, 0, { '<', '>', WCH_NONE, WCH_NONE, 0x1c } },
{ VK_BACK, 0, { 0x8, 0x8, WCH_NONE, WCH_NONE, 0x7f } },
{ VK_ESCAPE, 0, { 0x1b, 0x1b, WCH_NONE, WCH_NONE, 0x1b } },
{ VK_RETURN, 0, { 0xd, 0xd, WCH_NONE, WCH_NONE, 0xa } },
{ VK_SPACE, 0, { ' ', ' ', WCH_NONE, WCH_NONE, ' ' } },
{ VK_CANCEL, 0, { 0x3, 0x3, WCH_NONE, WCH_NONE, 0x3 } },
{ 0, 0 }
}
#define WCH_NONE
Definition: kbd.h:169
#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_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 210 of file kbdhept.c.

◆ key_to_chars_6mod

ROSDATA VK_TO_WCHARS6 key_to_chars_6mod[]
Initial value:
= {
{ VK_EMPTY, 0, { '~', '`', 0x1fc1, WCH_NONE, WCH_NONE, WCH_NONE } },
{ '2', 0, { '2', '@', 0x3de, 0xb2, WCH_NONE, 0x0 } },
{ '6', 0, { '6', '^', 0xb6, WCH_NONE, WCH_NONE, 0x1e } },
{ VK_OEM_MINUS, 0, { WCH_DEAD, WCH_DEAD, 0xb1, WCH_NONE, WCH_NONE, 0x1f } },
{ VK_EMPTY, 0, { '-', '_', WCH_NONE, WCH_NONE, WCH_NONE, WCH_NONE } },
{ 0, 0 }
}
#define VK_OEM_3
Definition: winuser.h:2352

Definition at line 228 of file kbdhept.c.

◆ keyboard_layout_table

ROSDATA KBDTABLES keyboard_layout_table
Initial value:
= {
0, 0, NULL
}
#define RTL_NUMBER_OF(x)
Definition: RtlRegistry.c:12
#define KLLF_ALTGR
Definition: kbd.h:147
#define KBD_VERSION
Definition: kbd.h:145
ROSDATA USHORT scancode_to_vk[0x7f]
Definition: kbdhept.c:36
ROSDATA VSC_LPWSTR extended_key_names[]
Definition: kbdhept.c:686
ROSDATA MODIFIERS modifier_bits
Definition: kbdhept.c:130
ROSDATA VSC_LPWSTR key_names[]
Definition: kbdhept.c:631
ROSDATA DEADKEY dead_keys[]
Definition: kbdhept.c:265
ROSDATA VSC_VK extcode0_to_vk[]
Definition: kbdhept.c:71
ROSDATA VK_TO_WCHAR_TABLE vk_to_wchar_master_table[]
Definition: kbdhept.c:253
ROSDATA DEADKEY_LPWSTR dead_key_names[]
Definition: kbdhept.c:623
ROSDATA VSC_VK extcode1_to_vk[]
Definition: kbdhept.c:113
#define MAKELONG(a, b)
Definition: typedefs.h:249

Definition at line 713 of file kbdhept.c.

Referenced by KbdLayerDescriptor().

◆ keypad_numbers

ROSDATA VK_TO_WCHARS1 keypad_numbers[]
Initial value:
= {
{ VK_NUMPAD0, 0, { '0' } },
{ VK_NUMPAD1, 0, { '1' } },
{ VK_NUMPAD2, 0, { '2' } },
{ VK_NUMPAD3, 0, { '3' } },
{ VK_NUMPAD4, 0, { '4' } },
{ VK_NUMPAD5, 0, { '5' } },
{ VK_NUMPAD6, 0, { '6' } },
{ VK_NUMPAD7, 0, { '7' } },
{ VK_NUMPAD8, 0, { '8' } },
{ VK_NUMPAD9, 0, { '9' } },
{ 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 238 of file kbdhept.c.

◆ modifier_bits

ROSDATA MODIFIERS modifier_bits
Initial value:
= {
7,
{
0,
1,
4,
5,
2,
3
}
}
#define SHFT_INVALID
Definition: kbd.h:74
ROSDATA VK_TO_BIT modifier_keys[]
Definition: kbdhept.c:119

Definition at line 130 of file kbdhept.c.

◆ modifier_keys

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

Definition at line 119 of file kbdhept.c.

◆ scancode_to_vk

ROSDATA USHORT scancode_to_vk[0x7f]

Definition at line 36 of file kbdhept.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: kbdhept.c:238
ROSDATA VK_TO_WCHARS4 key_to_chars_4mod[]
Definition: kbdhept.c:201
#define vk_master(n, x)
Definition: kbdhept.c:252
ROSDATA VK_TO_WCHARS3 key_to_chars_3mod[]
Definition: kbdhept.c:183
ROSDATA VK_TO_WCHARS5 key_to_chars_5mod[]
Definition: kbdhept.c:210
ROSDATA VK_TO_WCHARS2 key_to_chars_2mod[]
Definition: kbdhept.c:148
ROSDATA VK_TO_WCHARS6 key_to_chars_6mod[]
Definition: kbdhept.c:228

Definition at line 253 of file kbdhept.c.