aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorBastien Bouclet2017-11-26 15:08:28 +0100
committerBastien Bouclet2017-11-26 15:11:22 +0100
commit1b0f1dafbbad4468eb12bc6952b31291d0d8c3e6 (patch)
tree8166de5d948da9df6cc16772d168ed6122614dc3 /engines
parent83b27d263e1433a134b53b66919566c3192ca116 (diff)
downloadscummvm-rg350-1b0f1dafbbad4468eb12bc6952b31291d0d8c3e6.tar.gz
scummvm-rg350-1b0f1dafbbad4468eb12bc6952b31291d0d8c3e6.tar.bz2
scummvm-rg350-1b0f1dafbbad4468eb12bc6952b31291d0d8c3e6.zip
MOHAWK: RIVEN: Ignore key repeat events
This fixes keyboard book page turning being too fast when holding keys
Diffstat (limited to 'engines')
-rw-r--r--engines/mohawk/riven.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp
index 0cd6b4f62e..266706ae11 100644
--- a/engines/mohawk/riven.cpp
+++ b/engines/mohawk/riven.cpp
@@ -258,6 +258,9 @@ void MohawkEngine_Riven::doFrame() {
}
break;
default:
+ if (event.kbdRepeat) {
+ continue;
+ }
_stack->onKeyPressed(event.kbd);
break;
}