aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorD G Turner2018-10-17 15:01:12 +0100
committerD G Turner2018-10-17 15:01:12 +0100
commit3d7bb383db8f0e4c3751f75512e6b08cf06bee57 (patch)
tree19b722b988b27ac3a2e5860cc8d755fb97ca5013 /engines
parent50503741dc8f9048457fc4344a497adf540d8160 (diff)
downloadscummvm-rg350-3d7bb383db8f0e4c3751f75512e6b08cf06bee57.tar.gz
scummvm-rg350-3d7bb383db8f0e4c3751f75512e6b08cf06bee57.tar.bz2
scummvm-rg350-3d7bb383db8f0e4c3751f75512e6b08cf06bee57.zip
SWORD25: Fix Debug Console Activation via CTRL-d.
Diffstat (limited to 'engines')
-rw-r--r--engines/sword25/input/inputengine.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/sword25/input/inputengine.cpp b/engines/sword25/input/inputengine.cpp
index 7157e7242f..9bedca3b34 100644
--- a/engines/sword25/input/inputengine.cpp
+++ b/engines/sword25/input/inputengine.cpp
@@ -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;