[Scummvm-cvs-logs] CVS: scummvm/scumm dialogs.cpp,1.101,1.102

Nicolas Bacca arisme at users.sourceforge.net
Sat Jan 17 15:40:02 CET 2004


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv31176

Modified Files:
	dialogs.cpp 
Log Message:
Implements TOGGLE_VIRTUAL_KEYBOARD

Index: dialogs.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/dialogs.cpp,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -d -r1.101 -r1.102
--- dialogs.cpp	8 Jan 2004 20:37:25 -0000	1.101
+++ dialogs.cpp	17 Jan 2004 23:39:43 -0000	1.102
@@ -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 @@
 }
 
 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::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() {





More information about the Scummvm-git-logs mailing list