[Scummvm-cvs-logs] CVS: scummvm/gui newgui.cpp,1.23,1.24 ListWidget.cpp,1.9,1.10

Nicolas Bacca arisme at users.sourceforge.net
Tue Oct 22 15:36:02 CEST 2002


Update of /cvsroot/scummvm/scummvm/gui
In directory usw-pr-cvs1:/tmp/cvs-serv32485

Modified Files:
	newgui.cpp ListWidget.cpp 
Log Message:
Do not repeat keys for WinCE (problems with GAPI and virtual keyboard)

Index: newgui.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/newgui.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- newgui.cpp	19 Oct 2002 01:22:41 -0000	1.23
+++ newgui.cpp	22 Oct 2002 22:35:07 -0000	1.24
@@ -134,10 +134,14 @@
 				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);

Index: ListWidget.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/ListWidget.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- ListWidget.cpp	19 Oct 2002 01:22:41 -0000	1.9
+++ ListWidget.cpp	22 Oct 2002 22:35:07 -0000	1.10
@@ -197,7 +197,14 @@
 		_scrollBar->draw();
 	}
 
+#ifndef _WIN32_WCE
+
+	// not done on WinCE because keyboard is emulated and
+	// keyup is not generated
+
 	_currentKeyDown = key;
+
+#endif
 	
 	return handled;
 }





More information about the Scummvm-git-logs mailing list