HID键盘值(包含多媒体键)
{0x01,0x00,0x00,0x00},//{0x24,0x02},//WWW back 0
{0x02,0x00,0x00,0x00}, //{0x25,0x02}, //WWW forward 1
{0x04,0x00,0x00,0x00}, //{0x26,0x02}, //WWW Stop 2
{0x08,0x00,0x00,0x00}, //{0x27,0x02}, //WWW Refresh 3
{0x10,0x00,0x00,0x00}, //{0x21,0x02}, //WWW Search 4
{0x20,0x00,0x00,0x00}, //{0x2A,0x02}, //WWW Favorites 5
{0x40,0x00,0x00,0x00}, //{0x23,0x02}, //WWW Home 6
{0x80,0x00,0x00,0x00}, //{0x8A,0x01}, //Mail 7
{0x00,0x01,0x00,0x00}, //{0xE2,0x00}, //Mute 8
{0x00,0x02,0x00,0x00}, //{0xEA,0x00}, //Volume- 9
{0x00,0x04,0x00,0x00}, //{0xE9,0x00}, //Volume+ 10 0x04
{0x00,0x08,0x00,0x00}, //{0xCD,0x00}, //Play/Pause 11
{0x00,0x10,0x00,0x00}, //{0xB7,0x00}, //Stop 12
{0x00,0x20,0x00,0x00}, //{0xB6,0x00}, //Prev Track 13
{0x00,0x40,0x00,0x00}, //{0xB5,0x00}, //Next Track 14
{0x00,0x80,0x00,0x00}, //{0x83,0x01}, //Media Select 15
{0x00,0x00,0x01,0x00}, //{0x94,0x01}, //My Computer 16
{0x00,0x00,0x02,0x00}, //{0x92,0x01}, //Calculator 17
{0x00,0x00,0x04,0x00}, //{0x09,0x02}, //More Info 18
{0x00,0x00,0x08,0x00}, //{0xB2,0x00}, //Record 19
{0x00,0x00,0x10,0x00}, //{0xB3,0x00}, //Forward 20
{0x00,0x00,0x20,0x00}, //{0xB4,0x00}, //Rewind 21
{0x00,0x00,0x40,0x00}, //{0x8D,0x00}, //Guide 22
{0x00,0x00,0x80,0x00}, //{0x04,0x00}, //<Reserved> 23
{0x00,0x00,0x00,0x01}, //{0x30,0x00}, //Eject(Mac,power) 24
{0x00,0x00,0x00,0x02}, //{0x07,0x03}, //H7 25
{0x00,0x00,0x00,0x04}, //{0x0A,0x03}, //H10 26ightness+
{0x00,0x00,0x00,0x08}, //{0x0B,0x03}, //H11 27lightness-
{0x00,0x00,0x00,0x10}, //{0xb1,0x01}, //photo 28
{0x00,0x00,0x00,0x20}, //{0xb8,0x00}, //touchkey29
{0x40,0x00,0x00,0x01}, //截屏30
{0x00,0x00,0x00,0x00}, //{0x01,0x03}, //H1 25
{0x00,0x00,0x00,0x00}, //{0x02,0x03}, //H2 26
{0x00,0x00,0x00,0x00}, //{0x03,0x03}, //H3 27
{0x00,0x00,0x00,0x00}, //{0x04,0x03}, //H4 28
{0x00,0x00,0x00,0x00}, //{0x05,0x03}, //H5 29
{0x00,0x00,0x00,0x00}, //{0x06,0x03}, //H6 30
{0x00,0x00,0x00,0x00}, //{0x08,0x03}, //H8 32
{0x00,0x00,0x00,0x00}, //{0x09,0x03}, //H9 33
{0x00,0x00,0x00,0x00}, //{0x0C,0x03}, //H12 36
{0x00,0x00,0x00,0x00}, //{0x0D,0x03}, //H13 37
{0x00,0x00,0x00,0x00}, //{0x0E,0x03}, //H14 38
{0x00,0x00,0x00,0x00}, //{0x0F,0x03}, //H15 39
{0x00,0x00,0x00,0x00}, //{0x10,0x03}, //H16 40
{0x00,0x00,0x00,0x00}, //{0x11,0x03}, //H17 41
{0x00,0x00,0x00,0x00}, //{0x12,0x03}, //H18 42
{0x00,0x00,0x00,0x00}, //{0x13,0x03}, //H19 43
};
//普通按键类
#define KEY_NULL 0x00
#define KEY_A 0x04 //A
#define KEY_B 0x05 //B
#define KEY_C 0x06 //C
#define KEY_D 0x07 //D
#define KEY_E 0x08 //E
#define KEY_F 0x09 //F
#define KEY_G 0x0A //G
#define KEY_H 0x0B //H
#define KEY_I 0x0C //I
#define KEY_J 0x0D //J
#define KEY_K 0x0E //K
#define KEY_L 0x0F //L
#define KEY_M 0x10 //M
#define KEY_N 0x11 //N
#define KEY_O 0x12 //O
#define KEY_P 0x13 //P
#define KEY_Q 0x14 //Q
#define KEY_R 0x15 //R
#define KEY_S 0x16 //S
#define KEY_T 0x17 //T
#define KEY_U 0x18 //U
#define KEY_V 0x19 //V
#define KEY_W 0x1A //W
#define KEY_X 0x1B //X
#define KEY_Y 0x1C //Y
#define KEY_Z 0x1D //Z
#define KEY_1 0x1E //1 !
#define KEY_2 0x1F //2 @
#define KEY_3 0x20 //3
#define KEY_4 0x21 //4
#define KEY_5 0x22 //5
#define KEY_6 0x23 //6
#define KEY_7 0x24 //7
#define KEY_8 0x25 //8
#define KEY_9 0x26 //9
#define KEY_0 0x27 //0
#define KEY_ENTER 0x28
#define KEY_ESC 0x29
#define KEY_BACKSPACE 0x2A
#define KEY_TAB 0x2B
#define KEY_SPACE 0x2C
#define KEY_SUB 0x2D // - and _
#define KEY_EQUAL 0x2E // = and +
#define KEY_LEFT_BRACKET 0x2F // [ and {
#define KEY_RIGHT_BRACKET 0x30 // ] and }
#define KEY_VERTICAL_LINE 0x31 // "\" and |
#define KEY_WAVE 0x32 // ` and ~
#define KEY_SEMICOLON 0x33 // ; and :
#define KEY_QUOTE 0x34 // ' and "
#define KEY_THROW 0x35 // ~ and `
#define KEY_COMMA 0x36 // , and <
#define KEY_DOT 0x37 // . and >
#define KEY_QUESTION 0x38 // / and ?
#define KEY_CAPS_LOCK 0x39
#define KEY_F1 0x3A
#define KEY_F2 0x3B
#define KEY_F3 0x3C
#define KEY_F4 0x3D
#define KEY_F5 0x3E
#define KEY_F6 0x3F
#define KEY_F7 0x40
#define KEY_F8 0x41
#define KEY_F9 0x42
#define KEY_F10 0x43
#define KEY_F11 0x44
#define KEY_F12 0x45
#define KEY_PRT_SCR 0x46
#define KEY_SCOLL_LOCK 0x47
#define KEY_PAUSE 0x48
#define KEY_INS 0x49
#define KEY_HOME 0x4A
#define KEY_PAGEUP 0x4B
#define KEY_DEL 0x4C
#define KEY_END 0x4D
#define KEY_PAGEDOWN 0x4E
#define KEY_RIGHT_ARROW 0x4F
#define KEY_LEFT_ARROW 0x50
#define KEY_DOWN_ARROW 0x51
#define KEY_UP_ARROW 0x52
#define KEY_PAD_NUMLOCK 0x53
#define KEY_PAD_DIV 0x54 // /
#define KEY_PAD_MUL 0x55 // *
#define KEY_PAD_SUB 0x56 // -
#define KEY_PAD_ADD 0x57 // +
#define KEY_PAD_ENTER 0x58
#define KEY_PAD_1 0x59
#define KEY_PAD_2 0x5A
#define KEY_PAD_3 0x5B
#define KEY_PAD_4 0x5C
#define KEY_PAD_5 0x5D
#define KEY_PAD_6 0x5E
#define KEY_PAD_7 0x5F
#define KEY_PAD_8 0x60
#define KEY_PAD_9 0x61
#define KEY_PAD_0 0x62
#define KEY_PAD_DOT 0x63
#define KEY_PRESSED 0x00
#define KEY_RELEASED 0x01 //控制
#define KEY_LCTRL 0xE0 //左 ctrl 0x01
#define KEY_LALT 0xE2 //左Alt 0x04
#define KEY_LSHFIT 0xE1 //左Shift 0x02
#define KEY_LWIN 0xE3 //左windows 0x08
#define KEY_RWIN 0xE7 //右windows 0x80
#define KEY_RSHIFT 0xE5 //右Shift 0x20
#define KEY_RALT 0xE6 //右Alt 0x40
#define KEY_RCTRL 0xE4 //右Ctrl 0x10
#define KEY_APP 0x65 //Application 0x65
#define KEY_K14 0x89 //international key
#define KEY_KR_L 0x91 //
#define KEY_K107 0x85 //
#define KEY_K45 0x64 //
#define KEY_K42 0x32 //
#define KEY_K131 0x8b //
#define KEY_K132 0x8a //
#define KEY_K133 0x88 //
#define KEY_K56 0x87 //
#define KEY_KR_R 0x90 // //SELF DEFINE
#define KEY_H7 0XB0//H7 R0_C15
#define KEY_MAIL 0XB1//mail R0_C16
#define KEY_H8 0XB2//H8 R0_C18
#define KEY_POWER 0XB3//POWER R1_C0
#define KEY_H2 0XB4//H2 R1_C9
#define KEY_WWW_FAVORITE 0XB5//www favorite R1_C17
#define KEY_H9 0XB6//H9 R1_C18
#define KEY_PAIR 0XB7//bind R2_C0
#define KEY_FN 0XB8//FN R2_C9
#define KEY_WWW_FORWARD 0XB9//www forward R2_C16
#define KEY_H10 0XBA//H10 R2_C18
#define KEY_SLEEP 0XBB//SLEEP R3_C0
#define KEY_H1 0XBC//H1 R3_C7
#define KEY_VOLUME_SUB 0XBD//volume- R3_C15
#define KEY_WWW_STOP 0XBE//www stop R3_C16
#define KEY_MY_COMPUTER 0XBF//my computer R3_C17
#define KEY_H11 0XC0//H11 R3_C18
#define KEY_H3 0XC1//H3 R4_C9
#define KEY_PLAY_PAUSE 0XC2//play/pause R4_C14
#define KEY_VOLUME_ADD 0XC3//volume+ R4_C15
#define KEY_WWW_BACK 0XC4//www back R4_C16
#define KEY_STOP 0XC5//stop R4_C17
#define KEY_H12 0XC6//H12 R4_C18
#define KEY_WAKE_UP 0XC7//WAKE UP R5_C0
#define KEY_NEXT_TRACK 0XC8//next track R5_C15
#define KEY_WWW_REFRESH 0XC9//www refresh R5_C16
#define KEY_CALCULATOR 0XCA//calculator R5_C17
#define KEY_H13 0XCB//H13 R5_C18
#define KEY_H4 0XCC//H4 R6_C9
#define KEY_PREV_TRACK 0XCD//prev track R6_C15
#define KEY_MUTE 0XCE//mute R6_C16
#define KEY_WEB_HOME 0XCF//web home R6_C17
#define KEY_H14 0XD0//H14 R6_C18
#define KEY_H5 0XD1//H5 R7_C11
#define KEY_H6 0XD2//H6 R7_C12
#define KEY_MEDIA 0XD3//media R7_C15
#define KEY_WWW_SEARCH 0XD4//www search R7_C16
#define KEY_BACKLIGHT 0XD5//BACKLIGHT R7_C18
#define END_NULL 0x00
#define KEY_STATUS_CHANGE 0X0001
#define KEY_STATUS_ACTIVE 0X0002
#define KEY_STATUS_ERROR 0X0004
#define KEY_STATUS_GHOST 0X0008
#define KEY_STATUS_FN 0X0010
#define KEY_STATUS_NUMLOCK 0X0020
#define KEY_STATUS_PAIR 0X0040
#define KEY_STATUS_ENTER_PINCODE 0X0080
#define KEY_STATUS_ENTER_SLEEP 0X0100
#define KEY_STATUS_WAKE_UP 0X0200
#define KEY_STATUS_RELEASE 0X0400
#define KEY_STATUS_IN_SLEEP 0X0800
#define KEY_STATUS_IN_WAKE_UP 0X1000
#define KEY_STATUS_POWER_ON 0X2000
#define MEDIA_KEY_UPLOAD 0X01
#define POWER_KEY_UPLOAD 0X02
#define STANDARD_KEY_UPLOAD 0X04
#define MEDIA_KEY_SEND 0X10
#define POWER_KEY_SEND 0X20
#define STANDARD_KEY_SEND 0X40
- 随机文章
- 热门文章
- 热评文章
- html网页 swf播放器使用代码
- kali2.0安装完成后全是乱码解决办法
- 用PHP发送POST请求
- UDP穿透NAT的原理与实现(UDP“打洞”原理)
- C# 非独占延时函数 非Sleep
- STM32 keil mdk启动代码发分析
- php做下载连接/下载功能
- 开关电源拓扑结构概述(降压,升压,反激、正激)