diff options
author | Matthew Hoops | 2011-05-12 16:24:02 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-05-12 16:24:02 -0400 |
commit | 760f50f034b54d7e109692b4d5219560b065cf3a (patch) | |
tree | 6f9a103534bf4cad053dbf6a8c478871d7ace3e5 /engines | |
parent | 50e43a56e76ac0fa82560d0e5e42f5dd330313f1 (diff) | |
download | scummvm-rg350-760f50f034b54d7e109692b4d5219560b065cf3a.tar.gz scummvm-rg350-760f50f034b54d7e109692b4d5219560b065cf3a.tar.bz2 scummvm-rg350-760f50f034b54d7e109692b4d5219560b065cf3a.zip |
PEGASUS: Allow the console to be attached from the menu
Diffstat (limited to 'engines')
-rw-r--r-- | engines/pegasus/menu.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/pegasus/menu.cpp b/engines/pegasus/menu.cpp index 98cf59af8f..dd32e36c0e 100644 --- a/engines/pegasus/menu.cpp +++ b/engines/pegasus/menu.cpp @@ -23,6 +23,7 @@ #include "common/events.h" #include "common/textconsole.h" +#include "pegasus/console.h" #include "pegasus/pegasus.h" namespace Pegasus { @@ -91,6 +92,12 @@ void PegasusEngine::runMainMenu() { drawMenu(buttonSelected); } break; + case Common::KEYCODE_d: + if (event.kbd.flags & Common::KBD_CTRL) { + _console->attach(); + _console->onFrame(); + } + break; default: break; } |