]> git.lizzy.rs Git - minetest.git/blob - src/client/keys.h
9478737f6f52b3c00faadb05dbb8a814e6fc5803
[minetest.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                 HOTBAR_PREV,
54                 HOTBAR_NEXT,
55                 MUTE,
56                 INC_VOLUME,
57                 DEC_VOLUME,
58                 CINEMATIC,
59                 SCREENSHOT,
60                 TOGGLE_HUD,
61                 TOGGLE_CHAT,
62                 TOGGLE_FORCE_FOG_OFF,
63                 TOGGLE_UPDATE_CAMERA,
64                 TOGGLE_DEBUG,
65                 TOGGLE_PROFILER,
66                 CAMERA_MODE,
67                 INCREASE_VIEWING_RANGE,
68                 DECREASE_VIEWING_RANGE,
69                 RANGESELECT,
70                 ZOOM,
71
72                 QUICKTUNE_NEXT,
73                 QUICKTUNE_PREV,
74                 QUICKTUNE_INC,
75                 QUICKTUNE_DEC,
76
77                 DEBUG_STACKS,
78
79                 // joystick specific keys
80                 MOUSE_L,
81                 MOUSE_R,
82                 SCROLL_UP,
83                 SCROLL_DOWN,
84
85                 // Fake keycode for array size and internal checks
86                 INTERNAL_ENUM_COUNT
87
88         };
89 };
90
91 typedef KeyType::T GameKeyType;
92
93 #endif