aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb
diff options
context:
space:
mode:
authoreriktorbjorn2011-06-12 22:24:52 +0200
committerAlyssa Milburn2011-06-15 17:34:38 +0200
commit4547e7314cd64777c7807595dcacc369be338583 (patch)
treeb8bd61fdb46f8e4056c376f3c24fdda5602103cd /engines/dreamweb
parent6fb25cdde4381233f3aa98f92f7dfa62aa10b2fa (diff)
downloadscummvm-rg350-4547e7314cd64777c7807595dcacc369be338583.tar.gz
scummvm-rg350-4547e7314cd64777c7807595dcacc369be338583.tar.bz2
scummvm-rg350-4547e7314cd64777c7807595dcacc369be338583.zip
DREAMWEB: Make it possible to type the letter D
Diffstat (limited to 'engines/dreamweb')
-rw-r--r--engines/dreamweb/dreamweb.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp
index 6883580b74..02e93e1b39 100644
--- a/engines/dreamweb/dreamweb.cpp
+++ b/engines/dreamweb/dreamweb.cpp
@@ -115,6 +115,7 @@ void DreamWebEngine::processEvents() {
}
Common::Event event;
while (event_manager->pollEvent(event)) {
+ bool keyHandled = false;
switch(event.type) {
case Common::EVENT_KEYDOWN:
switch (event.kbd.keycode) {
@@ -122,9 +123,14 @@ void DreamWebEngine::processEvents() {
if (event.kbd.flags & Common::KBD_CTRL) {
_console->attach();
_console->onFrame();
+ keyHandled = true;
}
break;
default:
+ break;
+ }
+
+ if (!keyHandled) {
// As far as I can see, the only keys checked
// for in 'lasthardkey' are 1 (ESC) and 57
// (space) so add special cases for them and
@@ -137,8 +143,8 @@ void DreamWebEngine::processEvents() {
_context.data.byte(dreamgen::kLasthardkey) = 0;
if (event.kbd.ascii)
keyPressed(event.kbd.ascii);
- break;
}
+
break;
default:
break;