aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/debugger.cpp16
1 files changed, 6 insertions, 10 deletions
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 <class T>
@@ -71,9 +67,9 @@ int Debugger<T>::DebugPrintf(const char *format, ...) {
template <class T>
void Debugger<T>::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<T>::attach(const char *entry) {
template <class T>
void Debugger<T>::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;