aboutsummaryrefslogtreecommitdiff
path: root/sky
diff options
context:
space:
mode:
authorNicolas Bacca2003-07-12 13:15:12 +0000
committerNicolas Bacca2003-07-12 13:15:12 +0000
commitad66be2b57b2e972f7067f602f05aa3408f4fcf8 (patch)
tree8690c65cfe607456e3233c8f6bdbe5ba43f653c3 /sky
parentb2f737888dfb28ca9d60685c8b433ab955be4ff7 (diff)
downloadscummvm-rg350-ad66be2b57b2e972f7067f602f05aa3408f4fcf8.tar.gz
scummvm-rg350-ad66be2b57b2e972f7067f602f05aa3408f4fcf8.tar.bz2
scummvm-rg350-ad66be2b57b2e972f7067f602f05aa3408f4fcf8.zip
Add WinCE virtual keyboard
svn-id: r8944
Diffstat (limited to 'sky')
-rw-r--r--sky/control.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/sky/control.cpp b/sky/control.cpp
index a1e12f0e3a..d0c21f6fce 100644
--- a/sky/control.cpp
+++ b/sky/control.cpp
@@ -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 @@ uint16 SkyControl::saveRestorePanel(bool allowSave) {
if (allowSave) {
lookList = _savePanLookList;
lookListLen = 6;
+#ifdef _WIN32_WCE
+ force_keyboard(true);
+#endif
} else {
lookList = _restorePanLookList;
if (autoSaveExists())
@@ -913,6 +921,11 @@ uint16 SkyControl::saveRestorePanel(bool allowSave) {
free(saveGameTexts);
+#ifdef _WIN32_WCE
+ if (allowSave)
+ force_keyboard(false);
+#endif
+
return clickRes;
}