diff options
author | Bastien Bouclet | 2017-11-26 15:08:28 +0100 |
---|---|---|
committer | Bastien Bouclet | 2017-11-26 15:11:22 +0100 |
commit | 1b0f1dafbbad4468eb12bc6952b31291d0d8c3e6 (patch) | |
tree | 8166de5d948da9df6cc16772d168ed6122614dc3 /engines/mohawk/riven.cpp | |
parent | 83b27d263e1433a134b53b66919566c3192ca116 (diff) | |
download | scummvm-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/mohawk/riven.cpp')
-rw-r--r-- | engines/mohawk/riven.cpp | 3 |
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; } |