]> git.lizzy.rs Git - dragonfireclient.git/blob - src/client/keys.h
LINT: Switch whitelist check from egrep to awk
[dragonfireclient.git] / src / client / keys.h
1 /*
2 Minetest
3 Copyright (C) 2016 est31, <MTest31@outlook.com>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation; either version 2.1 of the License, or
8 (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 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 #ifndef KEYS_HEADER
21 #define KEYS_HEADER
22
23 #include <list>
24
25 class KeyType
26 {
27 public:
28         enum T
29         {
30                 // Player movement
31                 FORWARD,
32                 BACKWARD,
33                 LEFT,
34                 RIGHT,
35                 JUMP,
36                 SPECIAL1,
37                 SNEAK,
38                 AUTORUN,
39
40                 ESC,
41
42                 // Other
43                 DROP,
44                 INVENTORY,
45                 CHAT,
46                 CMD,
47                 CMD_LOCAL,
48                 CONSOLE,
49                 MINIMAP,
50                 FREEMOVE,
51                 FASTMOVE,
52                 NOCLIP,
53                 CINEMATIC,
54                 SCREENSHOT,
55                 TOGGLE_HUD,
56                 TOGGLE_CHAT,
57                 TOGGLE_FORCE_FOG_OFF,
58                 TOGGLE_UPDATE_CAMERA,
59                 TOGGLE_DEBUG,
60                 TOGGLE_PROFILER,
61                 CAMERA_MODE,
62                 INCREASE_VIEWING_RANGE,
63                 DECREASE_VIEWING_RANGE,
64                 RANGESELECT,
65                 ZOOM,
66
67                 QUICKTUNE_NEXT,
68                 QUICKTUNE_PREV,
69                 QUICKTUNE_INC,
70                 QUICKTUNE_DEC,
71
72                 DEBUG_STACKS,
73
74                 // joystick specific keys
75                 MOUSE_L,
76                 MOUSE_R,
77                 SCROLL_UP,
78                 SCROLL_DOWN,
79
80                 // Fake keycode for array size and internal checks
81                 INTERNAL_ENUM_COUNT
82
83         };
84 };
85
86 typedef KeyType::T GameKeyType;
87
88 #endif