aboutsummaryrefslogtreecommitdiff
path: root/sky/control.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sky/control.cpp')
-rw-r--r--sky/control.cpp21
1 files changed, 9 insertions, 12 deletions
diff --git a/sky/control.cpp b/sky/control.cpp
index c5a3635248..942c19a649 100644
--- a/sky/control.cpp
+++ b/sky/control.cpp
@@ -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 Control::saveRestorePanel(bool allowSave) {
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 @@ uint16 Control::saveRestorePanel(bool allowSave) {
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;
}