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 /scumm | |
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 'scumm')
-rw-r--r-- | scumm/dialogs.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scumm/dialogs.cpp b/scumm/dialogs.cpp index bfbc5ef578..b06f14cdb3 100644 --- a/scumm/dialogs.cpp +++ b/scumm/dialogs.cpp @@ -42,7 +42,6 @@ #ifdef _WIN32_WCE #include "gapi_keys.h" extern bool _get_key_mapping; -extern void force_keyboard(bool); extern void save_key_mapping(); extern void load_key_mapping(); #endif @@ -325,9 +324,9 @@ MainMenuDialog::~MainMenuDialog() { } void MainMenuDialog::open() { -#ifdef _WIN32_WCE - force_keyboard(true); -#endif + OSystem::Property prop; + prop.show_keyboard = true; + g_system->property(OSystem::PROP_TOGGLE_VIRTUAL_KEYBOARD, &prop); ScummDialog::open(); } @@ -364,11 +363,12 @@ void MainMenuDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat } void MainMenuDialog::close() { + OSystem::Property prop; + ScummDialog::close(); -#ifdef _WIN32_WCE - force_keyboard(false); -#endif + prop.show_keyboard = false; + g_system->property(OSystem::PROP_TOGGLE_VIRTUAL_KEYBOARD, &prop); } void MainMenuDialog::save() { |