-
Notifications
You must be signed in to change notification settings - Fork 2
/
scancodes.h
106 lines (100 loc) · 1.42 KB
/
scancodes.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
/* scancodes.h ---
*
* Filename: scancodes.h
* Description: An enum to translate keyboard scancodes to the key represented.
* Author: Jacob Garby
* URL: https://github.com/j4cobgarby/atomic-kernel/scancodes.h
*
*/
/* Code: */
#ifndef SCANCODES_H
#define SCANCODES_H
typedef enum {
F9 = 0x01,
F5 = 0x03,
F3,
F1,
F2,
F12,
F10 = 0x09,
F8,
F6,
F4,
TAB,
BACKTICK,
L_ALT = 0x11,
L_SHIFT,
L_CTRL = 0x14,
Q,
ONE,
Z = 0x1a,
S,
A,
W,
TWO,
C = 0x21,
X,
D,
E,
NUM_FOUR,
THREE,
SPACEBAR = 0x29,
V,
F,
T,
R,
FIVE,
N = 0x31,
B,
H,
G,
Y,
SIX,
M = 0x3a,
J,
U,
SEVEN,
EIGHT,
COMMA = 0x41,
K,
I,
O,
ZERO,
NINE,
DOT = 0x49,
FORWARD_SLASH,
L,
SEMI_COLON,
P,
HYPHON,
APOSTROPHE = 0x52,
SQUARE_BRACKET_LEFT = 0x54,
EQUALS,
CAPS_LOCK = 0x58,
R_SHIFT,
ENTER,
SQUARE_BRACKET_RIGHT,
BACKWARDS_SLASH = 0x5d,
BACKSPACE = 0x66,
NUMPAD_ONE = 0x69,
NUMPAD_FOUR = 0x6b,
NUMPAD_SEVEN = 0x6c,
NUMPAD_ZERO = 0x70,
NUMPAD_DOT,
NUMPAD_TWO,
NUMPAD_FIVE,
NUMPAD_SIX,
NUMPAD_EIGHT,
ESCAPE,
NUM_LOCK,
F11,
NUMPAD_PLUS,
NUMPAD_3,
NUMPAD_HYPHON,
NUMPAD_ASTERISK,
NUMPAD_NINE,
SCROLL_LOCK,
F7 = 0x83
} SCANCODE;
#endif
/* scancodes.h ends here */