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 ULTIMA3_METAENGINE_H
23#define ULTIMA3_METAENGINE_H
24
25#include "backends/keymapper/keymapper.h"
26#include "ultima/shared/engine/hotkeys.h"
27
28namespace Ultima {
29namespace Ultima3 {
30
31enum KeybindingAction {
32 KEYBIND_UP, KEYBIND_DOWN, KEYBIND_LEFT, KEYBIND_RIGHT,
33 KEYBIND_ATTACK, KEYBIND_BOARD, KEYBIND_CAST, KEYBIND_DESCEND, KEYBIND_ENTER, KEYBIND_FIRE,
34 KEYBIND_GET, KEYBIND_HYPER, KEYBIND_IGNITE_TORCH, KEYBIND_JUMP, KEYBIND_KLIMB, KEYBIND_LAUNCH,
35 KEYBIND_MAGIC, KEYBIND_NEGATE_TIME, KEYBIND_OFFER, KEYBIND_PASS, KEYBIND_QUIT, KEYBIND_READY,
36 KEYBIND_STEAL, KEYBIND_TRANSACT, KEYBIND_UNLOCK, KEYBIND_VIEW, KEYBIND_WEAR_ARMOR,
37 KEYBIND_X_IT, KEYBIND_YELL, KEYBIND_ZSTATS,
38 KEYBIND_NONE,
39
40 // Actions common to the Ultima games
41 KEYBIND_SAVE = Shared::HOTKEY_SAVE,
42 KEYBIND_RESTORE = Shared::HOTKEY_RESTORE,
43 KEYBIND_EXIT_GAME = Shared::HOTKEY_EXIT,
44 KEYBIND_MAIN_MENU = Shared::HOTKEY_MAIN_MENU
45};
46
47enum KeybindingMode {
48 KBMODE_ALL,
49 KBMODE_MINIMAL,
50 KBMODE_GAMEPLAY
51};
52
54private:
58 static void addMouseClickActions(Common::Keymap &keyMap);
59public:
63 static Common::KeymapArray initKeymaps(KeybindingMode mode = KBMODE_ALL);
64
68 static void setKeybindingMode(KeybindingMode mode);
69};
70
71} // namespace Ultima3
72} // namespace Ultima
73
74#endif
Definition: keymap.h:66
Definition: metaengine.h:53
static Common::KeymapArray initKeymaps(KeybindingMode mode=KBMODE_ALL)
static void setKeybindingMode(KeybindingMode mode)