Skip to content

Commit

Permalink
SWORD25: Fix Debug Console Activation via CTRL-d.
Browse files Browse the repository at this point in the history
  • Loading branch information
digitall committed Oct 17, 2018
1 parent 5050374 commit 3d7bb38
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions engines/sword25/input/inputengine.cpp
Expand Up @@ -118,11 +118,10 @@ void InputEngine::update() {

case Common::EVENT_KEYDOWN:
case Common::EVENT_KEYUP:
// FIXME - Need to work out how to expose getDebugger() to this module
//if (event.kbd.hasFlags(Common::KBD_CTRL) && event.kbd.keycode == Common::KEYCODE_d && event.type == Common::EVENT_KEYDOWN) {
// _vm->getDebugger()->attach();
// _vm->getDebugger()->onFrame();
//}
if (event.kbd.hasFlags(Common::KBD_CTRL) && event.kbd.keycode == Common::KEYCODE_d && event.type == Common::EVENT_KEYDOWN) {
g_engine->getDebugger()->attach();
g_engine->getDebugger()->onFrame();
}

alterKeyboardState(event.kbd.keycode, (event.type == Common::EVENT_KEYDOWN) ? 0x80 : 0);
break;
Expand Down

0 comments on commit 3d7bb38

Please sign in to comment.