diff options
author | Nicolas Bacca | 2004-01-17 23:40:36 +0000 |
---|---|---|
committer | Nicolas Bacca | 2004-01-17 23:40:36 +0000 |
commit | 76298a9cec9d8c3eba02afee32b22c2a67861a2b (patch) | |
tree | 9370fa41d401b7d50a6d049ed3947a9f6efce5d3 /simon/items.cpp | |
parent | a2c0980aab5d3495ab7089f2d71501177aa452d4 (diff) | |
download | scummvm-rg350-76298a9cec9d8c3eba02afee32b22c2a67861a2b.tar.gz scummvm-rg350-76298a9cec9d8c3eba02afee32b22c2a67861a2b.tar.bz2 scummvm-rg350-76298a9cec9d8c3eba02afee32b22c2a67861a2b.zip |
Implements TOGGLE_VIRTUAL_KEYBOARD
svn-id: r12459
Diffstat (limited to 'simon/items.cpp')
-rw-r--r-- | simon/items.cpp | 45 |
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; |