aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2008-01-05 10:38:50 +0000
committerPaul Gilbert2008-01-05 10:38:50 +0000
commit140d914c1813ca857a9db8e5b8218f618b81fbdf (patch)
tree50343f765116e852b85a0f2f7e08983b9cb92223
parent13cb1e710ff2a6be394d76334d267b9e8bf12ba9 (diff)
downloadscummvm-rg350-140d914c1813ca857a9db8e5b8218f618b81fbdf.tar.gz
scummvm-rg350-140d914c1813ca857a9db8e5b8218f618b81fbdf.tar.bz2
scummvm-rg350-140d914c1813ca857a9db8e5b8218f618b81fbdf.zip
Brought waitForPress into line with other similar methods to not register control characters
svn-id: r30231
-rw-r--r--engines/lure/events.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/lure/events.cpp b/engines/lure/events.cpp
index d3b1235ec9..4454452db9 100644
--- a/engines/lure/events.cpp
+++ b/engines/lure/events.cpp
@@ -191,7 +191,8 @@ void Events::waitForPress() {
while (!keyButton) {
while (pollEvent()) {
if (_event.type == Common::EVENT_QUIT) return;
- else if (_event.type == Common::EVENT_KEYDOWN) keyButton = true;
+ else if ((_event.type == Common::EVENT_KEYDOWN) && (_event.kbd.ascii != 0))
+ keyButton = true;
else if ((_event.type == Common::EVENT_LBUTTONDOWN) ||
(_event.type == Common::EVENT_MBUTTONDOWN) ||
(_event.type == Common::EVENT_RBUTTONDOWN)) {