-
Notifications
You must be signed in to change notification settings - Fork 0
/
keyboard_def.h
101 lines (97 loc) · 2.24 KB
/
keyboard_def.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
#define KEYBOARD_BUFFER_SIZE 64
#define ARROW_UP_KEY 256
#define ARROW_DOWN_KEY 257
#define ARROW_RIGHT_KEY 258
#define ARROW_LEFT_KEY 259
#define HOME_KEY 260
#define INSERT_KEY 261
#define DELETE_KEY 262
#define END_KEY 263
#define PAGE_UP_KEY 264
#define PAGE_DOWN_KEY 265
#define PAUSE_KEY 266
#define F1_KEY 267
#define F2_KEY 268
#define F3_KEY 269
#define F4_KEY 270
#define F5_KEY 271
#define F6_KEY 272
#define F7_KEY 273
#define F8_KEY 274
#define F9_KEY 275
#define F10_KEY 276
#define F10_PAD_KEY 277
#define F11_KEY 278
#define F12_KEY 279
#define SHIFT_F1_KEY 280
#define SHIFT_F2_KEY 281
#define SHIFT_F2_PAD_KEY 282
#define SHIFT_F3_KEY 283
#define SHIFT_F4_KEY 284
#define SHIFT_F5_KEY 285
#define SHIFT_F6_KEY 286
#define SHIFT_F7_KEY 287
#define SHIFT_F8_KEY 288
#define ALT_A_KEY 1065
#define ALT_B_KEY 1066
#define ALT_C_KEY 1067
#define ALT_D_KEY 1068
#define ALT_E_KEY 1069
#define ALT_F_KEY 1070
#define ALT_G_KEY 1071
#define ALT_H_KEY 1072
#define ALT_I_KEY 1073
#define ALT_J_KEY 1074
#define ALT_K_KEY 1075
#define ALT_L_KEY 1076
#define ALT_M_KEY 1077
#define ALT_N_KEY 1078
#define ALT_O_KEY 1079
#define ALT_P_KEY 1080
#define ALT_Q_KEY 1081
#define ALT_R_KEY 1082
#define ALT_S_KEY 1083
#define ALT_T_KEY 1084
#define ALT_U_KEY 1085
#define ALT_V_KEY 1086
#define ALT_W_KEY 1087
#define ALT_x_KEY 1088
#define ALT_Y_KEY 1089
#define ALT_Z_KEY 1090
#define NUMERIC_0 45
#define NUMERIC_1 35
#define NUMERIC_2 40
#define NUMERIC_3 34
#define NUMERIC_4 37
#define NUMERIC_5 12
#define NUMERIC_6 39
#define NUMERIC_7 36
#define NUMERIC_8 38
#define NUMERIC_9 33
#define X_SHIFT_SYM_L 65505
#define X_SHIFT_SYM_R 65505
#define X_F1_SYM 65470
#define X_F2_SYM 65471
#define X_F9_SYM 65478
#define X_F10_SYM 65479
#define X_F11_SYM 65480
#define X_F12_SYM 65481
#define X_ESC_SYM 65307
#define X_HOME_SYM 65360
#define X_PGUP_SYM 65365
#define X_PGDN_SYM 65366
#define X_END_SYM 65367
#define X_PAUSE_SYM 65299
#define X_ENTER_SYM 65293
#define X_UP_SYM 65362
#define X_DWN_SYM 65364
#define X_RIGHT_SYM 65363
#define X_LEFT_SYM 65361
#define X_BACKDEL_SYM 0xff08
#define X_INSERT_SYM 65379
#define X_DELETE_SYM 65535
#define X_NUM_ENTER_SYM 65421
#define X_ALT_SYM 65513
extern int *keyboard_buffer;
extern int keyboard_buffer_ptr;
extern int keyboard_buffer_used;