aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/input.cpp
diff options
context:
space:
mode:
authorjohndoe1232015-11-19 17:40:13 +0100
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commit09bbb482a8ccdfb8e36128d40364900b99aa2a13 (patch)
tree45aba751e4c2fc6826c3e9db26ee4bee28e0da9d /engines/illusions/input.cpp
parent601c6f408210344c73dcf4f3bab34b493132387a (diff)
downloadscummvm-rg350-09bbb482a8ccdfb8e36128d40364900b99aa2a13.tar.gz
scummvm-rg350-09bbb482a8ccdfb8e36128d40364900b99aa2a13.tar.bz2
scummvm-rg350-09bbb482a8ccdfb8e36128d40364900b99aa2a13.zip
ILLUSIONS: DUCKMAN: Implement opcodes 70/71 for pausing/unpausing during the menu
Also change some input functions to return uint istead of byte to allow bigger bitmasks.
Diffstat (limited to 'engines/illusions/input.cpp')
-rw-r--r--engines/illusions/input.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/illusions/input.cpp b/engines/illusions/input.cpp
index 1251aabc5d..3956691ef6 100644
--- a/engines/illusions/input.cpp
+++ b/engines/illusions/input.cpp
@@ -59,8 +59,8 @@ InputEvent& InputEvent::addMouseButton(int mouseButton) {
return *this;
}
-byte InputEvent::handle(Common::KeyCode key, int mouseButton, bool down) {
- byte newKeys = 0;
+uint InputEvent::handle(Common::KeyCode key, int mouseButton, bool down) {
+ uint newKeys = 0;
for (KeyMap::iterator it = _keyMap.begin(); it != _keyMap.end(); ++it) {
KeyMapping &keyMapping = *it;
if ((keyMapping._key != Common::KEYCODE_INVALID && keyMapping._key == key) ||