diff options
author | D G Turner | 2014-04-16 11:53:38 +0100 |
---|---|---|
committer | D G Turner | 2014-04-16 11:53:38 +0100 |
commit | 8282298556bc9e5133996b90090ca41524ee86cf (patch) | |
tree | c22d7c20255a7442a3f96c571cf106a1e7bda3f1 | |
parent | df39d9a9639d3f55a07af2bdd767d89095e109bd (diff) | |
download | scummvm-rg350-8282298556bc9e5133996b90090ca41524ee86cf.tar.gz scummvm-rg350-8282298556bc9e5133996b90090ca41524ee86cf.tar.bz2 scummvm-rg350-8282298556bc9e5133996b90090ca41524ee86cf.zip |
KEYMAPPER: Avoid blocking F7 events from engine when using vkeybd.
This allows the virtual keyboard to be enabled without causing breakage
to engines which use F7.
-rw-r--r-- | common/EventMapper.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/EventMapper.cpp b/common/EventMapper.cpp index 84774742c6..2f4939dc69 100644 --- a/common/EventMapper.cpp +++ b/common/EventMapper.cpp @@ -37,6 +37,9 @@ List<Event> DefaultEventMapper::mapEvent(const Event &ev, EventSource *source) { #ifdef ENABLE_VKEYBD else if (ev.kbd.keycode == KEYCODE_F7 && ev.kbd.hasFlags(0)) { mappedEvent.type = EVENT_VIRTUAL_KEYBOARD; + + // Avoid blocking F7 events from engine. + addDelayedEvent(100, ev); } #endif #ifdef ENABLE_KEYMAPPER |