ReactOS  0.4.15-dev-1018-g0695ecb
scancodes.h
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) 1998-2001 Klaus P. Gerlicher
4 
5 Module Name:
6 
7  scancodes.h
8 
9 Abstract:
10 
11  HEADER, scancodes of IBM keyboard
12 
13 Environment:
14 
15  LINUX 2.2.X
16  Kernel mode only
17 
18 Author:
19 
20  Klaus P. Gerlicher
21 
22 Revision History:
23 
24  15-Nov-2000: general cleanup of source files
25 
26 Copyright notice:
27 
28  This file may be distributed under the terms of the GNU Public License.
29 
30 --*/
31 /*
32 ** Scan Code Definitions . . .
33 */
34 // System Keys
35 #define SCANCODE_ESC 0x01
36 #define SCANCODE_BACKSPACE 0x0E
37 #define SCANCODE_TAB 0x0F
38 
39 #define SCANCODE_ENTER 0x1C
40 #define SCANCODE_L_CTRL 0x1D
41 #define SCANCODE_R_CTRL 0x5A
42 #define SCANCODE_L_SHIFT 0x2A
43 #define SCANCODE_R_SHIFT 0x36
44 #define SCANCODE_L_ALT 0x38
45 #define SCANCODE_R_ALT 0x5C
46 
47 #define SCANCODE_SPACE 0x39
48 #define SCANCODE_CAPS_LOCK 0x3A
49 #define SCANCODE_NUM_LOCK 0x45
50 #define SCANCODE_PRNT_SCRN 0x47
51 #define SCANCODE_SCROLL_LOCK 0x57
52 
53 // Function Keys
54 #define SCANCODE_F1 0x3b
55 #define SCANCODE_F2 0x3c
56 #define SCANCODE_F3 0x3d
57 #define SCANCODE_F4 0x3e
58 #define SCANCODE_F5 0x3f
59 #define SCANCODE_F6 0x40
60 #define SCANCODE_F7 0x41
61 #define SCANCODE_F8 0x42
62 #define SCANCODE_F9 0x43
63 #define SCANCODE_F10 0x44
64 #define SCANCODE_F11 0x57
65 #define SCANCODE_F12 0x58
66 
67 // Directional Control Keys
68 #define SCANCODE_HOME 0x47
69 #define SCANCODE_UP 0x48
70 #define SCANCODE_PGUP 0x49
71 #define SCANCODE_LEFT 0x4b
72 #define SCANCODE_CENTER 0x4c
73 #define SCANCODE_RIGHT 0x4d
74 #define SCANCODE_END 0x4f
75 #define SCANCODE_DOWN 0x50
76 #define SCANCODE_PGDN 0x51
77 #define SCANCODE_INS 0x52
78 #define SCANCODE_DEL 0x53
79 
80 // Cluster Directional Control Keys
81 #define SCANCODE_C_ENTER 0x59
82 #define SCANCODE_C_HOME 0x5d
83 #define SCANCODE_C_UP 0x5e
84 #define SCANCODE_C_PGUP 0x5f
85 #define SCANCODE_C_LEFT 0x60
86 #define SCANCODE_C_RIGHT 0x61
87 #define SCANCODE_C_END 0x62
88 #define SCANCODE_C_DOWN 0x63
89 #define SCANCODE_C_PGDN 0x64
90 #define SCANCODE_C_INS 0x65
91 #define SCANCODE_C_DEL 0x66
92 
93 
94 // Alphanumerics
95 #define SCANCODE_1 0x02
96 #define SCANCODE_2 0x03
97 #define SCANCODE_3 0x04
98 #define SCANCODE_4 0x05
99 #define SCANCODE_5 0x06
100 #define SCANCODE_6 0x07
101 #define SCANCODE_7 0x08
102 #define SCANCODE_8 0x09
103 #define SCANCODE_9 0x0A
104 #define SCANCODE_0 0x0B
105 
106 #define SCANCODE_EXTENDED 0xE0