From c585fe7a37e1352575bb92b6a7cbc72c8681db00 Mon Sep 17 00:00:00 2001 From: Nicolas Bacca Date: Tue, 22 Oct 2002 22:35:07 +0000 Subject: Do not repeat keys for WinCE (problems with GAPI and virtual keyboard) svn-id: r5251 --- gui/ListWidget.cpp | 7 +++++++ gui/newgui.cpp | 4 ++++ 2 files changed, 11 insertions(+) (limited to 'gui') diff --git a/gui/ListWidget.cpp b/gui/ListWidget.cpp index 84275b43b7..1090ae60fd 100644 --- a/gui/ListWidget.cpp +++ b/gui/ListWidget.cpp @@ -197,7 +197,14 @@ bool ListWidget::handleKeyDown(char key, int modifiers) _scrollBar->draw(); } +#ifndef _WIN32_WCE + + // not done on WinCE because keyboard is emulated and + // keyup is not generated + _currentKeyDown = key; + +#endif return handled; } 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); -- cgit v1.2.3