-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscancode2.lua
104 lines (102 loc) · 2 KB
/
scancode2.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
scancode = {
SC_Esc = 0x76
, SC_1 = 0x16
, SC_2 = 0x1E
, SC_3 = 0x26
, SC_4 = 0x25
, SC_5 = 0x2E
, SC_6 = 0x36
, SC_7 = 0x3D
, SC_8 = 0x3E
, SC_9 = 0x46
, SC_0 = 0x45
, SC_Minus = 0x4E, SC_Underscore = 0x4E
, SC_Equal = 0x55, SC_Plus = 0x55
, SC_BackSpace = 0x66
, SC_Tab = 0x0D
, SC_Q = 0x15
, SC_W = 0x1D
, SC_E = 0x24
, SC_R = 0x2D
, SC_T = 0x2C
, SC_Y = 0x35
, SC_U = 0x3C
, SC_I = 0x43
, SC_O = 0x44
, SC_P = 0x4D
, SC_LBrace = 0x54
, SC_RBrace = 0x5B
, SC_Enter = 0x5A
, SC_LCtrl = 0x14
, SC_A = 0x1C
, SC_S = 0x1B
, SC_D = 0x23
, SC_F = 0x2B
, SC_G = 0x34
, SC_H = 0x33
, SC_J = 0x3B
, SC_K = 0x42
, SC_L = 0x4B
, SC_Colon = 0x4C
, SC_Quote = 0x52, SC_Apostrophe = 0x52
, SC_Grave = 0x0E, SC_Tilde = 0x0E
, SC_LShift = 0x12
, SC_Backslash = 0x5D
, SC_Z = 0x1A
, SC_X = 0x22
, SC_C = 0x21
, SC_V = 0x2A
, SC_B = 0x32
, SC_N = 0x31
, SC_M = 0x3A
, SC_Coma = 0x41
, SC_Dot = 0x49
, SC_Slash = 0x4A
, SC_RShift = 0x59
, SC_Asterisk = 0x7C
, SC_LAlt = 0x11
, SC_Space = 0x29
, SC_CapsLock = 0x58
, SC_F1 = 0x05
, SC_F2 = 0x06
, SC_F3 = 0x04
, SC_F4 = 0x0C
, SC_F5 = 0x03
, SC_F6 = 0x0B
, SC_F7 = 0x83
, SC_F8 = 0x0A
, SC_F9 = 0x01
, SC_F10 = 0x09
, SC_NumLock = 0x77
, SC_ScrollLock = 0x7E
, SC_NumHome = 0x6C, SC_Num7 = 0x6C
, SC_NumUp8 = 0x75, SC_Num8 = 0x75
, SC_NumPageUp = 0x7D, SC_Num9 = 0x7D
, SC_NumMinus = 0x7B
, SC_NumLeft = 0x6B, SC_Num4 = 0x6B
, SC_Num5 = 0x73
, SC_NumRight = 0x74, SC_Num6 = 0x74
, SC_NumPlus = 0x79
, SC_NumEnd = 0x69, SC_Num1 = 0x69
, SC_NumDown = 0x72, SC_Num2 = 0x72
, SC_NumPageDown = 0x7A, SC_Num3 = 0x7A
, SC_NumInsert = 0x70, SC_Num0 = 0x70
, SC_NumDel = 0x71, SC_NumDot = 0x71
, SC_F11 = 0x78
, SC_F12 = 0x07
, SC_RCtrl = 0xE014
, SC_RAlt = 0xE011
, SC_Home = 0xE06C
, SC_Up = 0xE075
, SC_PageUp = 0xE07D
, SC_Left = 0xE06B
, SC_Right = 0xE074
, SC_End = 0xE069
, SC_Down = 0xE072
, SC_PageDown = 0xE07A
, SC_Insert = 0xE070
, SC_Del = 0xE071
, SC_LWin = 0xE01F
, SC_RWin = 0xE027
, SC_Menu = 0xE02F
}