-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathkeys.h
145 lines (138 loc) · 3.82 KB
/
keys.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
/* ----------- keys.h ------------ */
#ifndef KEYS_H
#define KEYS_H
#define OFFSET 0x1000
#define RUBOUT 8
#define BELL 7
#define ESC 27
#define ALT_BS (197+OFFSET)
#define ALT_DEL (184+OFFSET)
#define SHIFT_DEL (198+OFFSET)
#define CTRL_INS (186+OFFSET)
#define SHIFT_INS (185+OFFSET)
#define SHIFT_F8 (219+OFFSET)
#define F1 (187+OFFSET)
#define F2 (188+OFFSET)
#define F3 (189+OFFSET)
#define F4 (190+OFFSET)
#define F5 (191+OFFSET)
#define F6 (192+OFFSET)
#define F7 (193+OFFSET)
#define F8 (194+OFFSET)
#define F9 (195+OFFSET)
#define F10 (196+OFFSET)
#define CTRL_F1 (222+OFFSET)
#define CTRL_F2 (223+OFFSET)
#define CTRL_F3 (224+OFFSET)
#define CTRL_F4 (225+OFFSET)
#define CTRL_F5 (226+OFFSET)
#define CTRL_F6 (227+OFFSET)
#define CTRL_F7 (228+OFFSET)
#define CTRL_F8 (229+OFFSET)
#define CTRL_F9 (230+OFFSET)
#define CTRL_F10 (231+OFFSET)
#define ALT_F1 (232+OFFSET)
#define ALT_F2 (233+OFFSET)
#define ALT_F3 (234+OFFSET)
#define ALT_F4 (235+OFFSET)
#define ALT_F5 (236+OFFSET)
#define ALT_F6 (237+OFFSET)
#define ALT_F7 (238+OFFSET)
#define ALT_F8 (239+OFFSET)
#define ALT_F9 (240+OFFSET)
#define ALT_F10 (241+OFFSET)
#define HOME (199+OFFSET)
#define UP (200+OFFSET)
#define PGUP (201+OFFSET)
#define BS (203+OFFSET)
#define FWD (205+OFFSET)
#define END (207+OFFSET)
#define DN (208+OFFSET)
#define PGDN (209+OFFSET)
#define INS (210+OFFSET)
#define DEL (211+OFFSET)
#define CTRL_HOME (247+OFFSET)
#define CTRL_PGUP (132+OFFSET)
#define CTRL_BS (243+OFFSET)
#define CTRL_FIVE (143+OFFSET)
#define CTRL_FWD (244+OFFSET)
#define CTRL_END (245+OFFSET)
#define CTRL_PGDN (246+OFFSET)
#define SHIFT_HT (143+OFFSET)
#define ALT_A (158+OFFSET)
#define ALT_B (176+OFFSET)
#define ALT_C (174+OFFSET)
#define ALT_D (160+OFFSET)
#define ALT_E (146+OFFSET)
#define ALT_F (161+OFFSET)
#define ALT_G (162+OFFSET)
#define ALT_H (163+OFFSET)
#define ALT_I (151+OFFSET)
#define ALT_J (164+OFFSET)
#define ALT_K (165+OFFSET)
#define ALT_L (166+OFFSET)
#define ALT_M (178+OFFSET)
#define ALT_N (177+OFFSET)
#define ALT_O (152+OFFSET)
#define ALT_P (153+OFFSET)
#define ALT_Q (144+OFFSET)
#define ALT_R (147+OFFSET)
#define ALT_S (159+OFFSET)
#define ALT_T (148+OFFSET)
#define ALT_U (150+OFFSET)
#define ALT_V (175+OFFSET)
#define ALT_W (145+OFFSET)
#define ALT_X (173+OFFSET)
#define ALT_Y (149+OFFSET)
#define ALT_Z (172+OFFSET)
#define ALT_1 (0xf8+OFFSET)
#define ALT_2 (0xf9+OFFSET)
#define ALT_3 (0xfa+OFFSET)
#define ALT_4 (0xfb+OFFSET)
#define ALT_5 (0xfc+OFFSET)
#define ALT_6 (0xfd+OFFSET)
#define ALT_7 (0xfe +OFFSET)
#define ALT_8 (0xff+OFFSET)
#define ALT_9 (0x80+OFFSET)
#define ALT_0 (0x81+OFFSET)
#define ALT_HYPHEN (130+OFFSET)
#define RIGHTSHIFT 0x01
#define LEFTSHIFT 0x02
#define CTRLKEY 0x04
#define ALTKEY 0x08
#define SCROLLLOCK 0x10
#define NUMLOCK 0x20
#define CAPSLOCK 0x40
#define INSERTKEY 0x80
#define CTRL_A 1
#define CTRL_B 2
#define CTRL_C 3
#define CTRL_D 4
#define CTRL_E 5
#define CTRL_F 6
#define CTRL_G 7
#define CTRL_H 8
#define CTRL_I 9
#define CTRL_J 10
#define CTRL_K 11
#define CTRL_L 12
#define CTRL_M 13
#define CTRL_N 14
#define CTRL_O 15
#define CTRL_P 16
#define CTRL_Q 17
#define CTRL_R 18
#define CTRL_S 19
#define CTRL_T 20
#define CTRL_U 21
#define CTRL_V 22
#define CTRL_W 23
#define CTRL_X 24
#define CTRL_Y 25
#define CTRL_Z 26
struct keys {
int keycode;
char *keylabel;
};
extern struct keys keys[];
#endif