aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2010-03-27 13:29:10 +0000
committerJohannes Schickel2010-03-27 13:29:10 +0000
commita3ab15e8cf13c1137a0baf7ec75320d21f22d6f1 (patch)
tree421f6297c3c3f1a66ef50ff80f9c05b607854261
parenta2de7bb0ef8118c32e6e3ad1a945a8021544c519 (diff)
downloadscummvm-rg350-a3ab15e8cf13c1137a0baf7ec75320d21f22d6f1.tar.gz
scummvm-rg350-a3ab15e8cf13c1137a0baf7ec75320d21f22d6f1.tar.bz2
scummvm-rg350-a3ab15e8cf13c1137a0baf7ec75320d21f22d6f1.zip
Use the enumerators instead of hardcoding the values of them.
svn-id: r48411
-rw-r--r--engines/m4/events.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/m4/events.cpp b/engines/m4/events.cpp
index 1de9e97936..c0ca412f11 100644
--- a/engines/m4/events.cpp
+++ b/engines/m4/events.cpp
@@ -80,7 +80,7 @@ M4EventType Events::handleEvents() {
}
_ctrlFlag = false;
}
- _keyCode = (int32)_event.kbd.keycode | ((_event.kbd.flags & 7) << 24);
+ _keyCode = (int32)_event.kbd.keycode | ((_event.kbd.flags & (Common::KBD_CTRL | Common::KBD_ALT | Common::KBD_SHIFT)) << 24);
break;