📄 hid_keyboard_key_codes.h
字号:
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2005-2006
Part of BlueLab 3.5.2-release
FILE NAME
hid_keyboard_key_codes.h
DESCRIPTION
This file contains the lookup table to convert matrix scan codes into
HID key codes.
NOTES
*/
#ifndef _HID_KEYBOARD_KEY_CODES_H
/* Keycodes for special case keys */
#define LCTL (0x01 | HID_MATRIX_KEY_MODIFIER) /* Left CTRL */
#define LSH (0x02 | HID_MATRIX_KEY_MODIFIER) /* Left Shift */
#define LALT (0x04 | HID_MATRIX_KEY_MODIFIER) /* Left ALT */
#define LGUI (0x08 | HID_MATRIX_KEY_MODIFIER) /* Left Windows Key */
#define RCTL (0x10 | HID_MATRIX_KEY_MODIFIER) /* Right CTRL */
#define RSH (0x20 | HID_MATRIX_KEY_MODIFIER) /* Right Shift */
#define RALT (0x40 | HID_MATRIX_KEY_MODIFIER) /* Right ALT */
#define RGUI (0x80 | HID_MATRIX_KEY_MODIFIER) /* Right Windows Key */
#define WWW (0x00 | HID_MATRIX_KEY_AUX) /* WWW Key */
#define MAIL (0x01 | HID_MATRIX_KEY_AUX) /* E-Mail Key */
#define FIND (0x02 | HID_MATRIX_KEY_AUX) /* Find Key */
/* Look up table for keyboard scan codes.
Each entry corresponds to a location on the keyboard matrix - row, column.
The value is a word where the top byte indicates the type of key. This type is
used to process the value i.e. if it is a MODIFIER, it is OR'd into the modifier
byte in the report; if it is a KEY_CODE it is added to the array of UsageIDs in
the report. AUXKEY keys are sent to the VM app via the StreamHidAuxsource.
This is a 64 bit-field indicating which of the AUXKEY keys are currently held
down. */
static const uint16 app_keyboard_key_codes[] =
{
/* R0 R1 R2 R3 R4 R5 R6 R7 R8 R9 R10 R11 R12 R13 R14 R15 R16 R17 */
0x00, 0x29, 0x3a, 0x20, 0x42, 0x40, 0x3e, 0x21, 0x23, 0x56, 0x46, 0x48, 0x00, 0x44, 0x3c, 0x4f, 0x47, 0x00, /* C0 */
0x00, 0x35, 0x3b, 0x25, 0x43, 0x41, 0x3f, 0x22, 0x24, 0x53, 0x65, 0x00, 0x00, 0x45, 0x3d, 0x2c, 0x58, 0x00, /* C1 */
0x00, 0x1e, 0x4b, 0x0c, 0x27, 0x26, 0x2e, 0x15, 0x1c, 0x00, 0x54, 0x52, 0x00, 0x4a, 0x49, 0x00, LGUI, 0x00, /* C2 */
0x00, 0x2b, 0x4e, 0x08, 0x51, 0x2d, 0x2a, 0x17, 0x18, 0x00, 0x55, 0x00, 0x39, 0x4d, 0x4c, RGUI, 0x00, 0x00, /* C3 */
LSH, 0x14, 0x1f, 0x0e, 0x33, 0x12, 0x30, 0x09, 0x0b, 0x00, 0x5f, 0x00, 0x00, 0x60, 0x61, 0x00, 0x00, LCTL, /* C4 */
0x00, 0x04, 0x1a, 0x07, 0x34, 0x2f, 0x00, 0x0a, 0x0d, LALT, 0x5c, 0x00, 0x00, 0x5d, 0x5e, 0x00, 0x00, FIND, /* C5 */
0x00, 0x64, 0x16, 0x06, 0x38, 0x0f, 0x50, 0x19, 0x11, RALT, 0x57, 0x32, 0x00, 0x5a, 0x5b, 0x00, WWW, 0x00, /* C6 */
RSH, 0x1d, 0x1b, 0x36, 0x13, 0x37, 0x28, 0x05, 0x10, 0x00, 0x59, 0x00, 0x00, 0x62, 0x63, 0x00, MAIL, RCTL /* C7 */
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -