/*
|-------------------------------------------------------
|Byte | b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 |
|-------------------------------------------------------
|0 |Right|Right|Right|Right|Left |Left |Left |Left |
| |GUI |Alt |Shift|Ctrl |GUI |Alt |Shift|Ctrl |
|-------------------------------------------------------
|1 | Reserved |
|-------------------------------------------------------
|2 | Key 1 scan code |
|-------------------------------------------------------
|3 | Key 2 scan code |
|-------------------------------------------------------
|4 | Key 3 scan code |
|-------------------------------------------------------
|5 | Key 4 scan code |
|-------------------------------------------------------
|6 | Key 5 scan code |
|-------------------------------------------------------
|7 | Key 6 scan code |
|-------------------------------------------------------
*/
const unsigned char c_usbKeyCode[64]=
{
0x00, //key up
0x01,
0x02,
0x03,
0x04, //key a
0x05, //key b
0x06, //key c
0x07, //key d
0x08, //key e
0x09, //key f
0x0a, //key g
0x0b, //key h
0x0c, //key i
0x0d, //key j
0x0e, //key k
0x0f, //key l
0x10, //key m
0x11, //key n
0x12, //key o
0x13, //key p
0x14, //key q
0x15, //key r
0x16, //key s
0x17, //key t
0x18, //key u
0x19, //key v
0x1a, //key w
0x1b, //key x
0x1c, //key y
0x1d, //key z
0x1e, //key 1 !
0x1f, //key 2 @
0x20, //key 3 #
0x21, //key 4 $
0x22, //key 5 %
0x23, //key 6 ^
0x24, //key 7 &
0x25, //key 8 *
0x26, //key 9 (
0x27, //key 0 )
0x28, //key Enter
0x29, //key ESC
0x2a, //key Backspace
0x2b, //key TAB
0x2c, //key Space
0x2d, //key - _
0x2e, //key = +
0x2f, //key [ {
0x30, //key ] }
0x31, //key \ |
0x32, //key
0x33, //key ; :
0x34, //key ‘ “
0x35,
0x36, //key , <
0x37, //key . >
0x38, //key / ?
0x39, //key CAP Lock
0x3a, //key F1
0x3b, //key F2
0x3c, //key F3
0x3d, //key F4
0x3e, //key F5
0x3f, //key F6
0x40, //key F7
0x41, //key F8
0x42, //key F9
0x43, //key F10
0x44, //key F11
0x45, //key F12
0x46, //key Print Screeen
0x47, //key Scroll LOCK
0x48, //key Pause
0x49, //key Insert
0x4a, //key Home
0x4b, //key Pageup
0x4c, //key De1ete
0x4d, //key End
0x4e, //key PageDown
0x4f, //key right arrow
0x50, //key left arrow
0x51, //key down arrow
0x52, //key up arrow
0x53, //key Num LCOk
0x54, //keypad /1
0x55, // Keypad *
0x56, // Keypad -
0x57, // Keypad +
0x58, // keypad Enter
0x59, // Keypad 1
0x5a, // Keypad 2
0x5b, // Keypad 3
0x5c, // Keypad 4
0x5d, // Keypad 5
0x5e, // Keypad 6
0x5f, // Keypad 7
0x60, // Keypad 8
0x61, // Keypad 9
0x62, // Keypad 0
0x63, // Keypad .
};
阅读(2082) | 评论(0) | 转发(0) |