[Scummvm-git-logs] scummvm master -> 3d7bb383db8f0e4c3751f75512e6b08cf06bee57
digitall
dgturner at iee.org
Wed Oct 17 15:52:19 CEST 2018
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
3d7bb383db SWORD25: Fix Debug Console Activation via CTRL-d.
Commit: 3d7bb383db8f0e4c3751f75512e6b08cf06bee57
https://github.com/scummvm/scummvm/commit/3d7bb383db8f0e4c3751f75512e6b08cf06bee57
Author: D G Turner (digitall at scummvm.org)
Date: 2018-10-17T15:01:12+01:00
Commit Message:
SWORD25: Fix Debug Console Activation via CTRL-d.
Changed paths:
engines/sword25/input/inputengine.cpp
diff --git a/engines/sword25/input/inputengine.cpp b/engines/sword25/input/inputengine.cpp
index 7157e72..9bedca3 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;
More information about the Scummvm-git-logs
mailing list