[Scummvm-cvs-logs] CVS: scummvm/common debugger.cpp,1.4,1.5

Nicolas Bacca arisme at users.sourceforge.net
Sat Jan 17 15:41:00 CET 2004


Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1:/tmp/cvs-serv31393

Modified Files:
	debugger.cpp 
Log Message:
Implements TOGGLE_VIRTUAL_KEYBOARD

Index: debugger.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/debugger.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- debugger.cpp	6 Jan 2004 12:45:27 -0000	1.4
+++ debugger.cpp	17 Jan 2004 23:40:36 -0000	1.5
@@ -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 @@
 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 @@
 
 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;





More information about the Scummvm-git-logs mailing list