aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/input.cpp
diff options
context:
space:
mode:
authorEric Fry2018-06-28 22:20:36 +1000
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commitfee1f3d8cb065182322bc80aba39a66a1b4b0cfb (patch)
treef152dd04ca1313d799d6edcc1d20ba5f789b52e0 /engines/illusions/input.cpp
parent608f2f1f1ae524fd6ffc656dfcef3985988adaa9 (diff)
downloadscummvm-rg350-fee1f3d8cb065182322bc80aba39a66a1b4b0cfb.tar.gz
scummvm-rg350-fee1f3d8cb065182322bc80aba39a66a1b4b0cfb.tar.bz2
scummvm-rg350-fee1f3d8cb065182322bc80aba39a66a1b4b0cfb.zip
ILLUSIONS: always use braces for loops
Diffstat (limited to 'engines/illusions/input.cpp')
-rw-r--r--engines/illusions/input.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/illusions/input.cpp b/engines/illusions/input.cpp
index 712f417a19..12d8436e86 100644
--- a/engines/illusions/input.cpp
+++ b/engines/illusions/input.cpp
@@ -173,8 +173,9 @@ InputEvent& Input::setInputEvent(uint evt, uint bitMask) {
}
void Input::handleKey(Common::KeyCode key, int mouseButton, bool down) {
- for (uint i = 0; i < kEventMax; ++i)
+ for (uint i = 0; i < kEventMax; ++i) {
_newKeys |= _inputEvents[i].handle(key, mouseButton, down);
+ }
uint prevButtonStates = _buttonStates;
_buttonStates |= _newKeys;
_newKeys = 0;