diff options
author | Nicolas Bacca | 2002-10-22 22:35:07 +0000 |
---|---|---|
committer | Nicolas Bacca | 2002-10-22 22:35:07 +0000 |
commit | c585fe7a37e1352575bb92b6a7cbc72c8681db00 (patch) | |
tree | 9d77ef769a4fce121abc0fae3e4b7b0019c7a76a /gui/newgui.cpp | |
parent | 3c2a409b11e727c0e990de12a67a5a9c0deb85c2 (diff) | |
download | scummvm-rg350-c585fe7a37e1352575bb92b6a7cbc72c8681db00.tar.gz scummvm-rg350-c585fe7a37e1352575bb92b6a7cbc72c8681db00.tar.bz2 scummvm-rg350-c585fe7a37e1352575bb92b6a7cbc72c8681db00.zip |
Do not repeat keys for WinCE (problems with GAPI and virtual keyboard)
svn-id: r5251
Diffstat (limited to 'gui/newgui.cpp')
-rw-r--r-- | gui/newgui.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp index 0ce93c7300..75c416750e 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -134,10 +134,14 @@ void NewGui::runLoop() case OSystem::EVENT_KEYDOWN: activeDialog->handleKeyDown((byte)event.kbd.ascii, event.kbd.flags); +#ifndef _WIN32_WCE // init continuous event stream + // not done on WinCE because keyboard is emulated and + // keyup is not generated _currentKeyDown = event.kbd.ascii; _currentKeyDownFlags = event.kbd.flags; _keyRepeatTime = time + kKeyRepeatInitialDelay; +#endif break; case OSystem::EVENT_KEYUP: activeDialog->handleKeyUp((byte)event.kbd.ascii, event.kbd.flags); |