[Scummvm-cvs-logs] CVS: scummvm/sky control.cpp,1.44,1.45

Nicolas Bacca arisme at users.sourceforge.net
Sat Jul 12 06:16:04 CEST 2003


Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1:/tmp/cvs-serv3704

Modified Files:
	control.cpp 
Log Message:
Add WinCE virtual keyboard

Index: control.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/control.cpp,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- control.cpp	12 Jul 2003 06:39:55 -0000	1.44
+++ control.cpp	12 Jul 2003 13:15:12 -0000	1.45
@@ -25,6 +25,11 @@
 #include "common/file.h"
 #include "common/gameDetector.h"
 
+#ifdef _WIN32_WCE
+extern void force_keyboard(bool);
+#endif
+
+
 SkyConResource::SkyConResource(void *pSpData, uint32 pNSprites, uint32 pCurSprite, uint16 pX, uint16 pY, uint32 pText, uint8 pOnClick, OSystem *system, uint8 *screen) {
 
 	_spriteData = (dataFileHeader *)pSpData;
@@ -807,6 +812,9 @@
 	if (allowSave) {
 		lookList = _savePanLookList;
 		lookListLen = 6;
+#ifdef _WIN32_WCE
+		force_keyboard(true);
+#endif
 	} else {
 		lookList = _restorePanLookList;
 		if (autoSaveExists())
@@ -913,6 +921,11 @@
 
 	free(saveGameTexts);
 
+#ifdef _WIN32_WCE
+	if (allowSave)
+		force_keyboard(false);
+#endif
+	
     return clickRes;
 }
 





More information about the Scummvm-git-logs mailing list