]> git.lizzy.rs Git - dragonfireclient.git/blob - src/client/keys.h
25f3e44d2ddb66cbc168dc47def8d6bfe92316cb
[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 public:
27         enum T {
28                 // Player movement
29                 FORWARD,
30                 BACKWARD,
31                 LEFT,
32                 RIGHT,
33                 JUMP,
34                 SPECIAL1,
35                 SNEAK,
36                 AUTORUN,
37
38                 ESC,
39
40                 // Other
41                 DROP,
42                 INVENTORY,
43                 CHAT,
44                 CMD,
45                 CMD_LOCAL,
46                 CONSOLE,
47                 MINIMAP,
48                 FREEMOVE,
49                 FASTMOVE,
50                 NOCLIP,
51                 CINEMATIC,
52                 SCREENSHOT,
53                 TOGGLE_HUD,
54                 TOGGLE_CHAT,
55                 TOGGLE_FORCE_FOG_OFF,
56                 TOGGLE_UPDATE_CAMERA,
57                 TOGGLE_DEBUG,
58                 TOGGLE_PROFILER,
59                 CAMERA_MODE,
60                 INCREASE_VIEWING_RANGE,
61                 DECREASE_VIEWING_RANGE,
62                 RANGESELECT,
63                 ZOOM,
64
65                 QUICKTUNE_NEXT,
66                 QUICKTUNE_PREV,
67                 QUICKTUNE_INC,
68                 QUICKTUNE_DEC,
69
70                 DEBUG_STACKS,
71
72                 // joystick specific keys
73                 MOUSE_L,
74                 MOUSE_R,
75                 SCROLL_UP,
76                 SCROLL_DOWN,
77
78                 // Fake keycode for array size and internal checks
79                 INTERNAL_ENUM_COUNT
80
81         };
82 };
83
84 typedef KeyType::T GameKeyType;
85
86
87 #endif