aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/gfx')
-rw-r--r--engines/sci/gfx/operations.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/sci/gfx/operations.cpp b/engines/sci/gfx/operations.cpp
index 9890df918d..0aa8598cc6 100644
--- a/engines/sci/gfx/operations.cpp
+++ b/engines/sci/gfx/operations.cpp
@@ -1485,6 +1485,21 @@ static sci_event_t scummvm_get_event(gfx_driver_t *drv) {
input.data = ev.kbd.keycode;
input.character = ev.kbd.ascii;
+ // Debug console
+ if (ev.kbd.flags == Common::KBD_CTRL && ev.kbd.keycode == Common::KEYCODE_d) {
+
+ ((Sci::SciEngine*)g_engine)->_console->attach();
+ ((Sci::SciEngine*)g_engine)->_console->onFrame();
+
+ // Clear keyboard event
+ input.type = SCI_EVT_NONE;
+ input.character = 0;
+ input.data = 0;
+ input.buckybits = 0;
+
+ return input;
+ }
+
if (!(input.data & 0xFF00)) {
// Directly accept most common keys without conversion
input.type = SCI_EVT_KEYBOARD;