ScummVM API documentation
metaengine.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
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.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef ULTIMA0_METAENGINE_H
23#define ULTIMA0_METAENGINE_H
24
25#include "backends/keymapper/keymapper.h"
26
27namespace Ultima {
28namespace Ultima0 {
29
30enum KeybindingAction {
31 KEYBIND_UP, KEYBIND_DOWN, KEYBIND_LEFT, KEYBIND_RIGHT,
32 KEYBIND_ESCAPE, KEYBIND_QUIT, KEYBIND_ENTER, KEYBIND_INFO,
33 KEYBIND_PASS, KEYBIND_ATTACK, KEYBIND_SWING, KEYBIND_THROW,
34 KEYBIND_AMULET1, KEYBIND_AMULET2, KEYBIND_AMULET3, KEYBIND_AMULET4,
35 KEYBIND_MINIMAP,
36
37 KEYBIND_SELECT, KEYBIND_FOOD, KEYBIND_RAPIER, KEYBIND_AXE,
38 KEYBIND_SHIELD, KEYBIND_BOW, KEYBIND_AMULET,
39
40 KEYBIND_NONE
41};
42
43enum KeybindingMode {
44 KBMODE_ALL,
45 KBMODE_MINIMAL,
46 KBMODE_MENUS,
47 KBMODE_OVERWORLD,
48 KBMODE_DUNGEONS
49};
50
52private:
56 static void addMouseClickActions(Common::Keymap &keyMap);
57public:
61 static Common::KeymapArray initKeymaps(KeybindingMode mode = KBMODE_ALL);
62
66 static void setKeybindingMode(KeybindingMode mode);
67};
68
69} // End of namespace Ultima0
70} // End of namespace Ultima
71
72#endif
Definition: keymap.h:66
Definition: metaengine.h:51
static Common::KeymapArray initKeymaps(KeybindingMode mode=KBMODE_ALL)
static void setKeybindingMode(KeybindingMode mode)