Add weapon cycling bindings for mouse and joystick buttons. Add weapon cycling bindi...
[chocolate-doom.git] / src / doomkeys.h
blob3db17a6d6910bc665f6393bc92a8f932612411b9
1 // Emacs style mode select -*- C++ -*-
2 //-----------------------------------------------------------------------------
3 //
4 // Copyright(C) 1993-1996 Id Software, Inc.
5 // Copyright(C) 2005 Simon Howard
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License
9 // as published by the Free Software Foundation; either version 2
10 // of the License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20 // 02111-1307, USA.
22 // DESCRIPTION:
23 // Key definitions
25 //-----------------------------------------------------------------------------
27 #ifndef __DOOMKEYS__
28 #define __DOOMKEYS__
31 // DOOM keyboard definition.
32 // This is the stuff configured by Setup.Exe.
33 // Most key data are simple ascii (uppercased).
35 #define KEY_RIGHTARROW 0xae
36 #define KEY_LEFTARROW 0xac
37 #define KEY_UPARROW 0xad
38 #define KEY_DOWNARROW 0xaf
39 #define KEY_ESCAPE 27
40 #define KEY_ENTER 13
41 #define KEY_TAB 9
42 #define KEY_F1 (0x80+0x3b)
43 #define KEY_F2 (0x80+0x3c)
44 #define KEY_F3 (0x80+0x3d)
45 #define KEY_F4 (0x80+0x3e)
46 #define KEY_F5 (0x80+0x3f)
47 #define KEY_F6 (0x80+0x40)
48 #define KEY_F7 (0x80+0x41)
49 #define KEY_F8 (0x80+0x42)
50 #define KEY_F9 (0x80+0x43)
51 #define KEY_F10 (0x80+0x44)
52 #define KEY_F11 (0x80+0x57)
53 #define KEY_F12 (0x80+0x58)
55 #define KEY_BACKSPACE '\b'
56 #define KEY_PAUSE 0xff
58 #define KEY_EQUALS 0x3d
59 #define KEY_MINUS 0x2d
61 #define KEY_RSHIFT (0x80+0x36)
62 #define KEY_RCTRL (0x80+0x1d)
63 #define KEY_RALT (0x80+0x38)
65 #define KEY_LALT KEY_RALT
67 // new keys:
69 #define KEY_CAPSLOCK (0x80+0x3a)
70 #define KEY_SCRLCK (0x80+0x46)
72 #define KEY_HOME (0x80+0x47)
73 #define KEY_END (0x80+0x4f)
74 #define KEY_PGUP (0x80+0x49)
75 #define KEY_PGDN (0x80+0x51)
76 #define KEY_INS (0x80+0x52)
77 #define KEY_DEL (0x80+0x53)
79 #define KEYP_0 0
80 #define KEYP_1 KEY_END
81 #define KEYP_2 KEY_DOWNARROW
82 #define KEYP_3 KEY_PGDN
83 #define KEYP_4 KEY_LEFTARROW
84 #define KEYP_5 '5'
85 #define KEYP_6 KEY_RIGHTARROW
86 #define KEYP_7 KEY_HOME
87 #define KEYP_8 KEY_UPARROW
88 #define KEYP_9 KEY_PGUP
90 #define KEYP_DIVIDE '/'
91 #define KEYP_PLUS '+'
92 #define KEYP_MINUS '-'
93 #define KEYP_MULTIPLY '*'
94 #define KEYP_PERIOD 0
95 #define KEYP_EQUALS KEY_EQUALS
96 #define KEYP_ENTER KEY_ENTER
98 #endif // __DOOMKEYS__