PEGASUS: Remove the debugger keymapper action

Opening the debugger is now in the global keymap.
This commit is contained in:
Bastien Bouclet 2020-02-16 15:35:31 +01:00
parent 60ab1dc239
commit 06e6176285
3 changed files with 0 additions and 11 deletions

View File

@ -46,7 +46,6 @@ InputDeviceManager::InputDeviceManager() {
g_system->getEventManager()->getEventDispatcher()->registerObserver(this, 2, false);
_lastRawBits = kAllUpBits;
_consoleRequested = false;
}
InputDeviceManager::~InputDeviceManager() {
@ -138,9 +137,6 @@ bool InputDeviceManager::notifyEvent(const Common::Event &event) {
switch (event.type) {
case Common::EVENT_CUSTOM_ENGINE_ACTION_START:
switch ((PegasusAction)event.customType) {
case kPegasusActionOpenDebugger:
_consoleRequested = true;
break;
case kPegasusActionSaveGameState:
((PegasusEngine *)g_engine)->requestSave();
break;

View File

@ -52,7 +52,6 @@ enum PegasusAction {
kPegasusActionShowPauseMenu,
kPegasusActionSaveGameState,
kPegasusActionLoadGameState,
kPegasusActionOpenDebugger,
kPegasusActionEnableEasterEgg,
kPegasusActionCount
@ -77,7 +76,6 @@ protected:
// Keep track of which keys are down (= true) or not
bool _keysDown[kPegasusActionCount];
InputBits _lastRawBits;
bool _consoleRequested;
};
enum {

View File

@ -2577,11 +2577,6 @@ Common::KeymapArray PegasusEngine::initKeymaps() {
act->addDefaultInputMapping("e");
engineKeyMap->addAction(act);
act = new Action(kStandardActionOpenDebugger, _("Open debugger"));
act->setCustomEngineActionEvent(kPegasusActionOpenDebugger);
act->addDefaultInputMapping("C+d");
engineKeyMap->addAction(act);
// We support meta where available and control elsewhere
act = new Action(kStandardActionSave, _("Save Game"));
act->setCustomEngineActionEvent(kPegasusActionSaveGameState);