ReactOS 0.4.15-dev-8413-gc1c91f2
kbdpo.c File Reference
#include <stdarg.h>
#include <windef.h>
#include <winuser.h>
#include <ndk/kbd.h>
Include dependency graph for kbdpo.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 TIDLE_CIRC   VK_OEM_2
 
#define ACUTE_GRAVE   VK_OEM_1
 
#define ORDERN_SUPERSCRIPT   VK_OEM_7
 
#define CCEDIL   VK_OEM_3
 
#define QUOTE   VK_OEM_4
 
#define BACKSLASH_BAR   VK_OEM_5
 
#define CLASSIC_QUOTES   VK_OEM_6
 
#define MATH_RELATE   VK_OEM_102
 
#define ACUTE_CHAR   0xB4
 
#define GRAVE_CHAR   0x60
 
#define CIRC_CHAR   0x5E
 
#define TIDLE_CHAR   0x7E
 
#define TREMA_CHAR   0xA8
 
#define vk_master(n, x)   { (PVK_TO_WCHARS1)x, n, sizeof(x[0]) }
 
#define DEADTRANS(ch, accent, comp, flags)   MAKELONG(ch, accent), comp, flags
 

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_WCHARS1 keypad_numbers []
 
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_WCHAR_TABLE vk_to_wchar_master_table []
 
ROSDATA DEADKEY deadkey []
 
ROSDATA VSC_LPWSTR key_names []
 
ROSDATA VSC_LPWSTR extended_key_names []
 
ROSDATA DEADKEY_LPWSTR dead_key_names []
 
ROSDATA KBDTABLES keyboard_layout_table
 

Macro Definition Documentation

◆ ACUTE_CHAR

#define ACUTE_CHAR   0xB4

Definition at line 225 of file kbdpo.c.

◆ ACUTE_GRAVE

#define ACUTE_GRAVE   VK_OEM_1

Definition at line 217 of file kbdpo.c.

◆ BACKSLASH_BAR

#define BACKSLASH_BAR   VK_OEM_5

Definition at line 221 of file kbdpo.c.

◆ CCEDIL

#define CCEDIL   VK_OEM_3

Definition at line 219 of file kbdpo.c.

◆ CIRC_CHAR

#define CIRC_CHAR   0x5E

Definition at line 227 of file kbdpo.c.

◆ CLASSIC_QUOTES

#define CLASSIC_QUOTES   VK_OEM_6

Definition at line 222 of file kbdpo.c.

◆ DEADTRANS

#define DEADTRANS (   ch,
  accent,
  comp,
  flags 
)    MAKELONG(ch, accent), comp, flags

Definition at line 366 of file kbdpo.c.

◆ GRAVE_CHAR

#define GRAVE_CHAR   0x60

Definition at line 226 of file kbdpo.c.

◆ KMEXT

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

Definition at line 38 of file kbdpo.c.

◆ KNUMS

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

Definition at line 37 of file kbdpo.c.

◆ MATH_RELATE

#define MATH_RELATE   VK_OEM_102

Definition at line 223 of file kbdpo.c.

◆ ORDERN_SUPERSCRIPT

#define ORDERN_SUPERSCRIPT   VK_OEM_7

Definition at line 218 of file kbdpo.c.

◆ QUOTE

#define QUOTE   VK_OEM_4

Definition at line 220 of file kbdpo.c.

◆ ROSDATA

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

Definition at line 31 of file kbdpo.c.

◆ TIDLE_CHAR

#define TIDLE_CHAR   0x7E

Definition at line 228 of file kbdpo.c.

◆ TIDLE_CIRC

#define TIDLE_CIRC   VK_OEM_2

Definition at line 216 of file kbdpo.c.

◆ TREMA_CHAR

#define TREMA_CHAR   0xA8

Definition at line 229 of file kbdpo.c.

◆ VK_EMPTY

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

Definition at line 35 of file kbdpo.c.

◆ vk_master

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

Definition at line 356 of file kbdpo.c.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 18 of file kbdpo.c.

Function Documentation

◆ KbdLayerDescriptor()

PKBDTABLES WINAPI KbdLayerDescriptor ( VOID  )

Definition at line 566 of file kbdpo.c.

566 {
567 return &keyboard_layout_table;
568}
ROSDATA KBDTABLES keyboard_layout_table
Definition: kbdpo.c:533

Variable Documentation

◆ dead_key_names

ROSDATA DEADKEY_LPWSTR dead_key_names[]
Initial value:
= {
L"\x00b4" L"Agudo",
L"\x0060" L"Grave",
L"\x005e" L"Circunflexo",
L"\x007e" L"Til",
L"\x00a8" L"Trema",
}
#define NULL
Definition: types.h:112
#define L(x)
Definition: ntvdm.h:50

Definition at line 523 of file kbdpo.c.

◆ deadkey

ROSDATA DEADKEY deadkey[]

Definition at line 368 of file kbdpo.c.

◆ extcode0_to_vk

ROSDATA VSC_VK extcode0_to_vk[]

Definition at line 170 of file kbdpo.c.

◆ extcode1_to_vk

ROSDATA VSC_VK extcode1_to_vk[]
Initial value:
= {
{ 0, 0 },
}

Definition at line 212 of file kbdpo.c.

◆ extended_key_names

ROSDATA VSC_LPWSTR extended_key_names[]

Definition at line 491 of file kbdpo.c.

◆ key_names

ROSDATA VSC_LPWSTR key_names[]

Definition at line 436 of file kbdpo.c.

◆ key_to_chars_2mod

ROSDATA VK_TO_WCHARS2 key_to_chars_2mod[]

Definition at line 262 of file kbdpo.c.

◆ key_to_chars_3mod

ROSDATA VK_TO_WCHARS3 key_to_chars_3mod[]
Initial value:
= {
{ VK_RETURN, 0, {'\r', '\r', '\n'} },
{ VK_BACK, 0, {'\b', '\b', 0x7f} },
{ 0,0 }
}
#define VK_RETURN
Definition: winuser.h:2201
#define VK_BACK
Definition: winuser.h:2198

Definition at line 330 of file kbdpo.c.

◆ key_to_chars_4mod

ROSDATA VK_TO_WCHARS4 key_to_chars_4mod[]
Initial value:
= {
{ '2', 0, { '2', '"', WCH_NONE, '@' } },
{ '3', 0, { '3', '#', WCH_NONE, 0xa3 } },
{ '4', 0, { '4', '$', WCH_NONE, 0xa7 } },
{ '7', 0, { '7', '/', WCH_NONE, 0x7b } },
{ '8', 0, { '8', '(', WCH_NONE, 0x5b } },
{ '9', 0, { '9', ')', WCH_NONE, 0x5d } },
{ '0', 0, { '0', '=', WCH_NONE, 0x7d } },
{ 'E', CAPLOK, { 'e', 'E', WCH_NONE, 0x20ac } },
{ VK_OEM_PLUS, 0, { '+', '*', WCH_NONE, WCH_DEAD } },
{ VK_EMPTY, 0, { '+', '*', WCH_NONE, TREMA_CHAR } },
{ 0, 0 }
}
#define WCH_DEAD
Definition: kbd.h:114
#define CAPLOK
Definition: kbd.h:118
#define WCH_NONE
Definition: kbd.h:113
#define TREMA_CHAR
Definition: kbdpo.c:229
#define VK_EMPTY
Definition: kbdpo.c:35

Definition at line 339 of file kbdpo.c.

◆ keyboard_layout_table

ROSDATA KBDTABLES keyboard_layout_table

Definition at line 533 of file kbdpo.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'} },
{ VK_DECIMAL, 0, {'.'} },
{ 0,0 }
}
#define VK_NUMPAD3
Definition: winuser.h:2242
#define VK_NUMPAD1
Definition: winuser.h:2240
#define VK_NUMPAD2
Definition: winuser.h:2241
#define VK_NUMPAD4
Definition: winuser.h:2243
#define VK_NUMPAD0
Definition: winuser.h:2239
#define VK_NUMPAD6
Definition: winuser.h:2245
#define VK_NUMPAD9
Definition: winuser.h:2248
#define VK_NUMPAD5
Definition: winuser.h:2244
#define VK_NUMPAD7
Definition: winuser.h:2246
#define VK_NUMPAD8
Definition: winuser.h:2247
#define VK_DECIMAL
Definition: winuser.h:2253

Definition at line 247 of file kbdpo.c.

◆ modifier_bits

ROSDATA MODIFIERS modifier_bits
Initial value:
= {
6,
{ 0, 1<<0, 1<<1, 1<<2, SHFT_INVALID, SHFT_INVALID, 3 }
}
#define SHFT_INVALID
Definition: kbd.h:19
ROSDATA VK_TO_BIT modifier_keys[]
Definition: kbdpo.c:233

Definition at line 240 of file kbdpo.c.

◆ modifier_keys

ROSDATA VK_TO_BIT modifier_keys[]
Initial value:
= {
{ 0, 0 }
}
#define KBDALT
Definition: kbd.h:16
#define KBDCTRL
Definition: kbd.h:15
#define KBDSHIFT
Definition: kbd.h:14
#define VK_CONTROL
Definition: winuser.h:2203
#define VK_SHIFT
Definition: winuser.h:2202
#define VK_MENU
Definition: winuser.h:2204

Definition at line 233 of file kbdpo.c.

◆ scancode_to_vk

ROSDATA USHORT scancode_to_vk[]

Definition at line 40 of file kbdpo.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: kbdpo.c:247
ROSDATA VK_TO_WCHARS4 key_to_chars_4mod[]
Definition: kbdpo.c:339
#define vk_master(n, x)
Definition: kbdpo.c:356
ROSDATA VK_TO_WCHARS3 key_to_chars_3mod[]
Definition: kbdpo.c:330
ROSDATA VK_TO_WCHARS2 key_to_chars_2mod[]
Definition: kbdpo.c:262

Definition at line 358 of file kbdpo.c.