aboutsummaryrefslogtreecommitdiff
path: root/sky/control.cpp
diff options
context:
space:
mode:
authorNicolas Bacca2004-01-17 23:40:36 +0000
committerNicolas Bacca2004-01-17 23:40:36 +0000
commit76298a9cec9d8c3eba02afee32b22c2a67861a2b (patch)
tree9370fa41d401b7d50a6d049ed3947a9f6efce5d3 /sky/control.cpp
parenta2c0980aab5d3495ab7089f2d71501177aa452d4 (diff)
downloadscummvm-rg350-76298a9cec9d8c3eba02afee32b22c2a67861a2b.tar.gz
scummvm-rg350-76298a9cec9d8c3eba02afee32b22c2a67861a2b.tar.bz2
scummvm-rg350-76298a9cec9d8c3eba02afee32b22c2a67861a2b.zip
Implements TOGGLE_VIRTUAL_KEYBOARD
svn-id: r12459
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;
}