Skip to content

Commit

Permalink
PEGASUS: Allow the console to be attached from the menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Hoops committed May 12, 2011
1 parent 50e43a5 commit 760f50f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions engines/pegasus/menu.cpp
Expand Up @@ -23,6 +23,7 @@
#include "common/events.h"
#include "common/textconsole.h"

#include "pegasus/console.h"
#include "pegasus/pegasus.h"

namespace Pegasus {
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 760f50f

Please sign in to comment.