[Scummvm-cvs-logs] scummvm master -> 4411155869e6345c235364169753257ac7212906
sev-
sev at scummvm.org
Wed Feb 24 23:33:13 CET 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
4411155869 GCW0: Trigger keyboard only on button down, not on up, otherwise it required holding
Commit: 4411155869e6345c235364169753257ac7212906
https://github.com/scummvm/scummvm/commit/4411155869e6345c235364169753257ac7212906
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-02-24T23:31:37+01:00
Commit Message:
GCW0: Trigger keyboard only on button down, not on up, otherwise it required holding
Changed paths:
backends/events/dinguxsdl/dinguxsdl-events.cpp
diff --git a/backends/events/dinguxsdl/dinguxsdl-events.cpp b/backends/events/dinguxsdl/dinguxsdl-events.cpp
index cb71304..0492c56 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
More information about the Scummvm-git-logs
mailing list