-
Notifications
You must be signed in to change notification settings - Fork 0
/
xt.h
108 lines (107 loc) · 1.49 KB
/
xt.h
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
105
106
107
108
uint8_t HID2XT[] = {
0,
0,
0,
0,
0x1E, //A
0x30, //B
0x2E, //C
0x20, //D
0x12, //E
0x21, //F
0x22, //G
0x23, //H
0x17, //I
0x24, //J
0x25, //K
0x26, //L
0x32, //M
0x31, //N
0x18, //O
0x19, //P
0x10, //Q
0x13, //R
0x1F, //S
0x14, //T
0x16, //U
0x2F, //V
0x11, //W
0x2D, //X
0x15, //Y
0x2C, //Z
0x02, //1
0x03, //2
0x04, //3
0x05, //4
0x06, //5
0x07, //6
0x08, //7
0x09, //8
0x0A, //9
0x0B, //0
0x1C, //Return
0x01, //Escape
0x0E, //Backspace
0x0F, //Tab
0x39, //Spacebar
0x0C, //-
0x0D, //=
0x1A, //[
0x1B, //]
0x2B, //Backslash
0,
0x27, //;
0x28, //'
0x29, //Tilde
0x33, //,
0x34, //.
0x35, //Slash
0x3A, //CapsLock
0x3B, //F1
0x3C, //F2
0x3D, //F3
0x3E, //F4
0x3F, //F5
0x40, //F6
0x41, //F7
0x42, //F8
0x43, //F9
0x44, //F10
0, //F11 - use for mute?
0, //F12 - use for turbo?
0x54, //SysRq (PrtScr)
0x46, //ScrollLock
0, //Pause
0x52, //Insert KP0
0x47, //Home KP7
0x49, //PageUp KP9
0x53, //Delete KP Dot
0x4F, //End KP1
0x51, //PageDown KP3
0x4D, //Right arrow KP6
0x4B, //Left arrow KP4
0x50, //Down arrow KP2
0x48, //Up arrow KP8
//Keypad block
0x45, //KP NumLock
0x35, //KP /
0x37, //KP *
0x4A, //KP -
0x4E, //KP +
0x1C, //KP Enter
0x4F, //KP 1
0x50, //KP 2
0x51, //KP 3
0x4B, //KP 4
0x4C, //KP 5
0x4D, //KP 6
0x47, //KP 7
0x48, //KP 8
0x49, //KP 9
0x52, //KP 0
0x53, //KP Dot
0};
uint8_t CTRL = 0x1D;
uint8_t ALT = 0x38;
uint8_t SHIFTL = 0x2A;
uint8_t SHIFTR = 0x36;