[Scummvm-cvs-logs] CVS: scummvm/sky control.cpp,1.64,1.65
Nicolas Bacca
arisme at users.sourceforge.net
Sat Jan 17 15:38:00 CET 2004
Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1:/tmp/cvs-serv30687
Modified Files:
control.cpp
Log Message:
Implements TOGGLE_VIRTUAL_KEYBOARD
Index: control.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/control.cpp,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- control.cpp 6 Jan 2004 12:45:32 -0000 1.64
+++ control.cpp 17 Jan 2004 23:37:24 -0000 1.65
@@ -35,10 +35,6 @@
#include "sky/struc.h"
#include "sky/text.h"
-#ifdef _WIN32_WCE
-extern void force_keyboard(bool);
-#endif
-
namespace Sky {
@@ -807,11 +803,11 @@
uint16 cnt;
uint8 lookListLen;
if (allowSave) {
+ OSystem::Property prop;
lookList = _savePanLookList;
lookListLen = 6;
-#ifdef _WIN32_WCE
- force_keyboard(true);
-#endif
+ prop.show_keyboard = true;
+ _system->property(OSystem::PROP_TOGGLE_VIRTUAL_KEYBOARD, &prop);
} else {
lookList = _restorePanLookList;
if (autoSaveExists())
@@ -918,11 +914,12 @@
free(saveGameTexts);
-#ifdef _WIN32_WCE
- if (allowSave)
- force_keyboard(false);
-#endif
-
+ if (allowSave) {
+ OSystem::Property prop;
+ prop.show_keyboard = false;
+ _system->property(OSystem::PROP_TOGGLE_VIRTUAL_KEYBOARD, &prop);
+ }
+
return clickRes;
}
More information about the Scummvm-git-logs
mailing list