ReactOS 0.4.17-dev-1421-g4623072
kbdnepr.c File Reference
#include <windef.h>
#include <winuser.h>
#include <ndk/kbd.h>
Include dependency graph for kbdnepr.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]) }
 

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_WCHARS5 key_to_chars_5mod []
 
ROSDATA VK_TO_WCHARS1 keypad_numbers []
 
ROSDATA VK_TO_WCHAR_TABLE vk_to_wchar_master_table []
 
ROSDATA LIGATURE3 ligatures []
 
ROSDATA VSC_LPWSTR key_names []
 
ROSDATA VSC_LPWSTR extended_key_names []
 
ROSDATA KBDTABLES keyboard_layout_table
 

Macro Definition Documentation

◆ KMEXT

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

Definition at line 28 of file kbdnepr.c.

◆ KNUMS

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

Definition at line 27 of file kbdnepr.c.

◆ ROSDATA

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

Definition at line 22 of file kbdnepr.c.

◆ VK_EMPTY

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

Definition at line 26 of file kbdnepr.c.

◆ vk_master

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

Definition at line 241 of file kbdnepr.c.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 8 of file kbdnepr.c.

Function Documentation

◆ KbdLayerDescriptor()

PKBDTABLES WINAPI KbdLayerDescriptor ( VOID  )

Definition at line 343 of file kbdnepr.c.

343 {
344 return &keyboard_layout_table;
345}
ROSDATA KBDTABLES keyboard_layout_table
Definition: kbdnepr.c:326

Variable Documentation

◆ extcode0_to_vk

ROSDATA VSC_VK extcode0_to_vk[]

Definition at line 73 of file kbdnepr.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 115 of file kbdnepr.c.

◆ extended_key_names

ROSDATA VSC_LPWSTR extended_key_names[]
Initial value:
= {
{ 0x1c, L"Num Enter" }, { 0x1d, L"Right Ctrl" },
{ 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 }
}
#define NULL
Definition: types.h:112
#define L(x)
Definition: resources.c:13

Definition at line 310 of file kbdnepr.c.

◆ key_names

ROSDATA VSC_LPWSTR key_names[]
Initial value:
= {
{ 0x01, L"Esc" }, { 0x0e, L"Backspace" }, { 0x0f, L"Tab" },
{ 0x1c, L"Enter" }, { 0x1d, L"Ctrl" }, { 0x2a, L"Shift" },
{ 0x36, L"Right Shift" },{ 0x37, L"Num *" }, { 0x38, L"Alt" },
{ 0x39, L"Space" }, { 0x3a, L"Caps Lock" },
{ 0x3b, L"F1" }, { 0x3c, L"F2" }, { 0x3d, L"F3" }, { 0x3e, L"F4" },
{ 0x3f, L"F5" }, { 0x40, L"F6" }, { 0x41, L"F7" }, { 0x42, L"F8" },
{ 0x43, L"F9" }, { 0x44, L"F10" },
{ 0x45, L"Pause" }, { 0x46, L"Scroll Lock" },
{ 0x47, L"Num 7" }, { 0x48, L"Num 8" }, { 0x49, L"Num 9" }, { 0x4a, L"Num -" },
{ 0x4b, L"Num 4" }, { 0x4c, L"Num 5" }, { 0x4d, L"Num 6" }, { 0x4e, L"Num +" },
{ 0x4f, L"Num 1" }, { 0x50, L"Num 2" }, { 0x51, L"Num 3" },
{ 0x52, L"Num 0" }, { 0x53, L"Num Del" },{ 0x54, L"Sys Req" },
{ 0x57, L"F11" }, { 0x58, L"F12" },
{ 0x7c, L"F13" }, { 0x7d, L"F14" }, { 0x7e, L"F15" }, { 0x7f, L"F16" },
{ 0x80, L"F17" }, { 0x81, L"F18" }, { 0x82, L"F19" }, { 0x83, L"F20" },
{ 0x84, L"F21" }, { 0x85, L"F22" }, { 0x86, L"F23" }, { 0x87, L"F24" },
{ 0, NULL }
}

Definition at line 290 of file kbdnepr.c.

◆ key_to_chars_2mod

ROSDATA VK_TO_WCHARS2 key_to_chars_2mod[]
Initial value:
= {
{ VK_TAB, 0, {0x09, 0x09} },
{ VK_ADD, 0, {'+', '+'} },
{ VK_DIVIDE, 0, {'/', '/'} },
{ VK_MULTIPLY, 0, {'*', '*'} },
{ VK_SUBTRACT, 0, {'-', '-'} },
{ 0, 0 }
}
#define VK_TAB
Definition: winuser.h:2235
#define VK_MULTIPLY
Definition: winuser.h:2285
#define VK_ADD
Definition: winuser.h:2286
#define VK_DIVIDE
Definition: winuser.h:2290
#define VK_SUBTRACT
Definition: winuser.h:2288

Definition at line 154 of file kbdnepr.c.

◆ key_to_chars_3mod

ROSDATA VK_TO_WCHARS3 key_to_chars_3mod[]
Initial value:
= {
{ VK_BACK, 0, {0x08, 0x08, 0x7f} },
{ VK_ESCAPE, 0, {0x1b, 0x1b, 0x1b} },
{ VK_RETURN, 0, {0x0d, 0x0d, 0x0a} },
{ VK_CANCEL, 0, {0x03, 0x03, 0x03} },
{ 0, 0 }
}
#define VK_CANCEL
Definition: winuser.h:2228
#define VK_RETURN
Definition: winuser.h:2237
#define VK_BACK
Definition: winuser.h:2234
#define VK_ESCAPE
Definition: winuser.h:2250

Definition at line 164 of file kbdnepr.c.

◆ key_to_chars_5mod

ROSDATA VK_TO_WCHARS5 key_to_chars_5mod[]

Definition at line 174 of file kbdnepr.c.

◆ keyboard_layout_table

ROSDATA KBDTABLES keyboard_layout_table
Initial value:
= {
NULL,
NULL,
3,
sizeof(LIGATURE3),
(PLIGATURE1)ligatures
}
#define RTL_NUMBER_OF(x)
Definition: RtlRegistry.c:12
#define KLLF_ALTGR
Definition: kbd.h:147
#define KBD_VERSION
Definition: kbd.h:145
ROSDATA LIGATURE3 ligatures[]
Definition: kbdnepr.c:256
ROSDATA VSC_LPWSTR extended_key_names[]
Definition: kbdnepr.c:310
ROSDATA USHORT scancode_to_vk[]
Definition: kbdnepr.c:33
ROSDATA MODIFIERS modifier_bits
Definition: kbdnepr.c:135
ROSDATA VSC_LPWSTR key_names[]
Definition: kbdnepr.c:290
ROSDATA VSC_VK extcode0_to_vk[]
Definition: kbdnepr.c:73
ROSDATA VK_TO_WCHAR_TABLE vk_to_wchar_master_table[]
Definition: kbdnepr.c:244
ROSDATA VSC_VK extcode1_to_vk[]
Definition: kbdnepr.c:115
#define MAKELONG(a, b)
Definition: typedefs.h:249

Definition at line 326 of file kbdnepr.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 227 of file kbdnepr.c.

◆ ligatures

ROSDATA LIGATURE3 ligatures[]
Initial value:
= {
{ '1', 0, {0x091C, 0x094D, 0x091E} },
{ 'A', 1, {0x092C, 0x094D, WCH_NONE} },
{ 'B', 1, {0x0926, 0x094D, WCH_NONE} },
{ 'D', 1, {0x092E, 0x094D, WCH_NONE} },
{ 'E', 1, {0x092D, 0x094D, WCH_NONE} },
{ 'G', 1, {0x0928, 0x094D, WCH_NONE} },
{ 'H', 1, {0x091C, 0x094D, WCH_NONE} },
{ 'I', 1, {0x0915, 0x094D, 0x0937} },
{ 'J', 1, {0x0935, 0x094D, WCH_NONE} },
{ 'K', 1, {0x092A, 0x094D, WCH_NONE} },
{ 'N', 1, {0x0932, 0x094D, WCH_NONE} },
{ 'Q', 0, {0x0924, 0x094D, 0x0930} },
{ 'R', 1, {0x091A, 0x094D, WCH_NONE} },
{ 'S', 1, {0x0915, 0x094D, WCH_NONE} },
{ 'T', 1, {0x0924, 0x094D, WCH_NONE} },
{ 'U', 1, {0x0917, 0x094D, WCH_NONE} },
{ 'V', 1, {0x0916, 0x094D, WCH_NONE} },
{ 'W', 1, {0x0927, 0x094D, WCH_NONE} },
{ 'X', 1, {0x0939, 0x094D, WCH_NONE} },
{ 'Y', 1, {0x0925, 0x094D, WCH_NONE} },
{ 'Z', 1, {0x0936, 0x094D, WCH_NONE} },
{ VK_OEM_1, 1, {0x0938, 0x094D, WCH_NONE} },
{ VK_OEM_PERIOD, 1, {0x0936, 0x094D, 0x0930} },
{ VK_OEM_2, 1, {0x0930, 0x0942, WCH_NONE} },
{ VK_OEM_3, 1, {0x091E, 0x094D, WCH_NONE} },
{ VK_OEM_4, 1, {0x0930, 0x094D, WCH_NONE} },
{ VK_OEM_5, 0, {0x094D, 0x0930, WCH_NONE} },
{ 0, 0 }
}
#define WCH_NONE
Definition: kbd.h:169
#define VK_OEM_5
Definition: winuser.h:2354
#define VK_OEM_4
Definition: winuser.h:2353
#define VK_OEM_2
Definition: winuser.h:2351
#define VK_OEM_1
Definition: winuser.h:2344
#define VK_OEM_3
Definition: winuser.h:2352

Definition at line 256 of file kbdnepr.c.

◆ modifier_bits

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

Definition at line 135 of file kbdnepr.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 128 of file kbdnepr.c.

◆ scancode_to_vk

ROSDATA USHORT scancode_to_vk[]

Definition at line 33 of file kbdnepr.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: kbdnepr.c:227
#define vk_master(n, x)
Definition: kbdnepr.c:241
ROSDATA VK_TO_WCHARS3 key_to_chars_3mod[]
Definition: kbdnepr.c:164
ROSDATA VK_TO_WCHARS5 key_to_chars_5mod[]
Definition: kbdnepr.c:174
ROSDATA VK_TO_WCHARS2 key_to_chars_2mod[]
Definition: kbdnepr.c:154

Definition at line 244 of file kbdnepr.c.