XenevaOS
Loading...
Searching...
No Matches
doomkeys.h
Go to the documentation of this file.
1//
2// Copyright(C) 1993-1996 Id Software, Inc.
3// Copyright(C) 2005-2014 Simon Howard
4//
5// This program is free software; you can redistribute it and/or
6// modify it under the terms of the GNU General Public License
7// as published by the Free Software Foundation; either version 2
8// of the License, or (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// DESCRIPTION:
16// Key definitions
17//
18
19#ifndef __DOOMKEYS__
20#define __DOOMKEYS__
21
22//
23// DOOM keyboard definition.
24// This is the stuff configured by Setup.Exe.
25// Most key data are simple ascii (uppercased).
26//
27#define KEY_RIGHTARROW 0xae
28#define KEY_LEFTARROW 0xac
29#define KEY_UPARROW 0xad
30#define KEY_DOWNARROW 0xaf
31#define KEY_STRAFE_L 0xa0
32#define KEY_STRAFE_R 0xa1
33#define KEY_USE 0xa2
34#define KEY_FIRE 0xa3
35#define KEY_ESCAPE 27
36#define KEY_ENTER 13
37#define KEY_TAB 9
38#define KEY_F1 (0x80+0x3b)
39#define KEY_F2 (0x80+0x3c)
40#define KEY_F3 (0x80+0x3d)
41#define KEY_F4 (0x80+0x3e)
42#define KEY_F5 (0x80+0x3f)
43#define KEY_F6 (0x80+0x40)
44#define KEY_F7 (0x80+0x41)
45#define KEY_F8 (0x80+0x42)
46#define KEY_F9 (0x80+0x43)
47#define KEY_F10 (0x80+0x44)
48#define KEY_F11 (0x80+0x57)
49#define KEY_F12 (0x80+0x58)
50
51#define KEY_BACKSPACE 0x7f
52#define KEY_PAUSE 0xff
53
54#define KEY_EQUALS 0x3d
55#define KEY_MINUS 0x2d
56
57#define KEY_RSHIFT (0x80+0x36)
58#define KEY_RCTRL (0x80+0x1d)
59#define KEY_RALT (0x80+0x38)
60
61#define KEY_LALT KEY_RALT
62
63// new keys:
64
65#define KEY_CAPSLOCK (0x80+0x3a)
66#define KEY_NUMLOCK (0x80+0x45)
67#define KEY_SCRLCK (0x80+0x46)
68#define KEY_PRTSCR (0x80+0x59)
69
70#define KEY_HOME (0x80+0x47)
71#define KEY_END (0x80+0x4f)
72#define KEY_PGUP (0x80+0x49)
73#define KEY_PGDN (0x80+0x51)
74#define KEY_INS (0x80+0x52)
75#define KEY_DEL (0x80+0x53)
76
77#define KEYP_0 0
78#define KEYP_1 KEY_END
79#define KEYP_2 KEY_DOWNARROW
80#define KEYP_3 KEY_PGDN
81#define KEYP_4 KEY_LEFTARROW
82#define KEYP_5 '5'
83#define KEYP_6 KEY_RIGHTARROW
84#define KEYP_7 KEY_HOME
85#define KEYP_8 KEY_UPARROW
86#define KEYP_9 KEY_PGUP
87
88#define KEYP_DIVIDE '/'
89#define KEYP_PLUS '+'
90#define KEYP_MINUS '-'
91#define KEYP_MULTIPLY '*'
92#define KEYP_PERIOD 0
93#define KEYP_EQUALS KEY_EQUALS
94#define KEYP_ENTER KEY_ENTER
95
96#endif // __DOOMKEYS__
97