From e26285b3f8589d69fbcbe9d49c1f617784a789a2 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 28 May 2006 11:52:24 +0000 Subject: Apparently some games use the F10 key, which makes it a poor choice for opening the debug console. Ctrl-D may be just as bad. Does anyone know for sure? svn-id: r22711 --- engines/agi/agi.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index f3b016781b..865118b0b3 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -116,6 +116,12 @@ static void process_events() { case OSystem::EVENT_KEYDOWN: key_control = 0; key_alt = 0; + + if (event.kbd.flags == OSystem::KBD_CTRL && event.kbd.keycode == 'd') { + _console->attach(); + break; + } + if (event.kbd.flags == OSystem::KBD_CTRL) { key_control = 1; key = 0; @@ -202,7 +208,7 @@ static void process_events() { key = 0x4300; break; case 291: - _console->attach(); + key = 0x4400; break; case 292: key = KEY_STATUSLN; -- cgit v1.2.3