From 76298a9cec9d8c3eba02afee32b22c2a67861a2b Mon Sep 17 00:00:00 2001 From: Nicolas Bacca Date: Sat, 17 Jan 2004 23:40:36 +0000 Subject: Implements TOGGLE_VIRTUAL_KEYBOARD svn-id: r12459 --- common/debugger.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'common') diff --git a/common/debugger.cpp b/common/debugger.cpp index 254296103b..03fd28688d 100644 --- a/common/debugger.cpp +++ b/common/debugger.cpp @@ -26,10 +26,6 @@ #include "gui/console.h" #endif -#ifdef _WIN32_WCE -extern void force_keyboard(bool); -#endif - namespace Common { template @@ -71,9 +67,9 @@ int Debugger::DebugPrintf(const char *format, ...) { template void Debugger::attach(const char *entry) { -#ifdef _WIN32_WCE - force_keyboard(true); -#endif + OSystem::Property prop; + prop.show_keyboard = true; + g_system->property(OSystem::PROP_TOGGLE_VIRTUAL_KEYBOARD, &prop); if (entry) { _errStr = strdup(entry); @@ -86,9 +82,9 @@ void Debugger::attach(const char *entry) { template void Debugger::detach() { -#ifdef _WIN32_WCE - force_keyboard(false); -#endif + OSystem::Property prop; + prop.show_keyboard = false; + g_system->property(OSystem::PROP_TOGGLE_VIRTUAL_KEYBOARD, &prop); _detach_now = false; _isAttached = false; -- cgit v1.2.3