1 /*
2  * PROJECT:     FreeLoader
3  * LICENSE:     GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4  * PURPOSE:     Key codes header file
5  * COPYRIGHT:   Copyright 1998-2003 Brian Palmer (brianp@reactos.org)
6  *              Copyright 2020 Dmitry Borisov (di.sean@protonmail.com)
7  */
8 
9 #pragma once
10 
11 #if defined(SARCH_PC98)
12 #define KEY_EXTENDED    0x00
13 #define KEY_ENTER       0x0D
14 #define KEY_BACKSPACE   0x08
15 #define KEY_DELETE      0x39
16 #define KEY_SPACE       0x20
17 #define KEY_LEFTSHIFT   0x70
18 #define KEY_HOME        0x3E
19 #define KEY_UP          0x3A
20 #define KEY_DOWN        0x3D
21 #define KEY_LEFT        0x3B
22 #define KEY_RIGHT       0x3C
23 #define KEY_ESC         0x1B
24 #define KEY_CAPS_LOCK   0x71
25 #define KEY_F1          0x62
26 #define KEY_F2          0x63
27 #define KEY_F3          0x64
28 #define KEY_F4          0x65
29 #define KEY_F5          0x66
30 #define KEY_F6          0x67
31 #define KEY_F7          0x68
32 #define KEY_F8          0x69
33 #define KEY_F9          0x6A
34 #define KEY_F10         0x6B
35 #define KEY_KEYPAD_PLUS 0x2B
36 #define KEY_END         0x3F
37 #else /* SARCH_PC98 */
38 #define KEY_EXTENDED    0x00
39 #define KEY_ENTER       0x0D
40 #define KEY_BACKSPACE   0x08
41 #define KEY_DELETE      0x53
42 #define KEY_SPACE       0x20
43 #define KEY_LEFTSHIFT   0x2A
44 #define KEY_HOME        0x47
45 #define KEY_UP          0x48
46 #define KEY_DOWN        0x50
47 #define KEY_LEFT        0x4B
48 #define KEY_RIGHT       0x4D
49 #define KEY_ESC         0x1B
50 #define KEY_CAPS_LOCK   0x3A
51 #define KEY_F1          0x3B
52 #define KEY_F2          0x3C
53 #define KEY_F3          0x3D
54 #define KEY_F4          0x3E
55 #define KEY_F5          0x3F
56 #define KEY_F6          0x40
57 #define KEY_F7          0x41
58 #define KEY_F8          0x42
59 #define KEY_F9          0x43
60 #define KEY_F10         0x44
61 #define KEY_F11         0x57
62 #define KEY_F12         0x58
63 #define KEY_KEYPAD_PLUS 0x4E
64 #define KEY_END         0x4F
65 #define KEY_SEND        0xE7
66 #endif
67