aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-02-24 23:31:37 +0100
committerEugene Sandulenko2016-02-24 23:31:37 +0100
commit4411155869e6345c235364169753257ac7212906 (patch)
tree77d5338776e783ababd8b661336a64aa92f815d6
parent2131023913b189533c70c021c0ba45c1ac2031b1 (diff)
downloadscummvm-rg350-4411155869e6345c235364169753257ac7212906.tar.gz
scummvm-rg350-4411155869e6345c235364169753257ac7212906.tar.bz2
scummvm-rg350-4411155869e6345c235364169753257ac7212906.zip
GCW0: Trigger keyboard only on button down, not on up, otherwise it required holding
-rw-r--r--backends/events/dinguxsdl/dinguxsdl-events.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/events/dinguxsdl/dinguxsdl-events.cpp b/backends/events/dinguxsdl/dinguxsdl-events.cpp
index cb71304f18..0492c569e1 100644
--- a/backends/events/dinguxsdl/dinguxsdl-events.cpp
+++ b/backends/events/dinguxsdl/dinguxsdl-events.cpp
@@ -175,7 +175,9 @@ bool DINGUXSdlEventSource::remapKey(SDL_Event &ev, Common::Event &event) {
return true;
} else if (ev.key.keysym.sym == BUT_SELECT) { // virtual keyboard
#ifdef ENABLE_VKEYBD
- event.type = Common::EVENT_VIRTUAL_KEYBOARD;
+ if (ev.type == SDL_KEYDOWN)
+ event.type = Common::EVENT_VIRTUAL_KEYBOARD;
+
return true;
#endif
} else if (ev.key.keysym.sym == BUT_START) { // F5, menu in some games