aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
authorNicolas Bacca2004-01-17 23:40:36 +0000
committerNicolas Bacca2004-01-17 23:40:36 +0000
commit76298a9cec9d8c3eba02afee32b22c2a67861a2b (patch)
tree9370fa41d401b7d50a6d049ed3947a9f6efce5d3 /simon
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 'simon')
-rw-r--r--simon/items.cpp45
1 files changed, 15 insertions, 30 deletions
diff --git a/simon/items.cpp b/simon/items.cpp
index 1916b84e22..e3ed750e24 100644
--- a/simon/items.cpp
+++ b/simon/items.cpp
@@ -26,12 +26,6 @@
#include "simon/simon.h"
#include "simon/intern.h"
-#ifdef _WIN32_WCE
-
-extern void force_keyboard(bool);
-
-#endif
-
namespace Simon {
int SimonEngine::runScript() {
@@ -737,28 +731,22 @@ int SimonEngine::runScript() {
break;
case 132:{ /* save game */
-#ifdef _WIN32_WCE
- force_keyboard(true);
-#endif
-
+ OSystem::Property prop;
+ prop.show_keyboard = true;
+ _system->property(OSystem::PROP_TOGGLE_VIRTUAL_KEYBOARD, &prop);
o_save_game();
-
-#ifdef _WIN32_WCE
- force_keyboard(false);
-#endif
+ prop.show_keyboard = false;
+ _system->property(OSystem::PROP_TOGGLE_VIRTUAL_KEYBOARD, &prop);
}
break;
case 133:{ /* load game */
-#ifdef _WIN32_WCE
- force_keyboard(true);
-#endif
-
+ OSystem::Property prop;
+ prop.show_keyboard = true;
+ _system->property(OSystem::PROP_TOGGLE_VIRTUAL_KEYBOARD, &prop);
o_load_game();
-
-#ifdef _WIN32_WCE
- force_keyboard(false);
-#endif
+ prop.show_keyboard = false;
+ _system->property(OSystem::PROP_TOGGLE_VIRTUAL_KEYBOARD, &prop);
}
break;
@@ -769,15 +757,12 @@ int SimonEngine::runScript() {
break;
case 135:{ /* quit if user presses y */
-#ifdef _WIN32_WCE
- force_keyboard(true);
-#endif
-
+ OSystem::Property prop;
+ prop.show_keyboard = true;
+ _system->property(OSystem::PROP_TOGGLE_VIRTUAL_KEYBOARD, &prop);
o_quit_if_user_presses_y();
-
-#ifdef _WIN32_WCE
- force_keyboard(false);
-#endif
+ prop.show_keyboard = false;
+ _system->property(OSystem::PROP_TOGGLE_VIRTUAL_KEYBOARD, &prop);
}
break;