[Scummvm-cvs-logs] SF.net SVN: scummvm: [23002] scummvm/trunk/backends/wince

knakos at users.sourceforge.net knakos at users.sourceforge.net
Sat Jun 10 13:07:36 CEST 2006


Revision: 23002
Author:   knakos
Date:     2006-06-10 04:07:28 -0700 (Sat, 10 Jun 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=23002&view=rev

Log Message:
-----------
added rotate and virtual keyboard actions

Modified Paths:
--------------
    scummvm/trunk/backends/wince/CEActionsSmartphone.cpp
    scummvm/trunk/backends/wince/CEActionsSmartphone.h
Modified: scummvm/trunk/backends/wince/CEActionsSmartphone.cpp
===================================================================
--- scummvm/trunk/backends/wince/CEActionsSmartphone.cpp	2006-06-10 11:06:05 UTC (rev 23001)
+++ scummvm/trunk/backends/wince/CEActionsSmartphone.cpp	2006-06-10 11:07:28 UTC (rev 23002)
@@ -52,12 +52,14 @@
 	"Zone",
 	"FT Cheat",
 	"Bind Keys"
+	"Keyboard",
+	"Rotate"
 };
 
 #ifdef SIMU_SMARTPHONE
-const int ACTIONS_SMARTPHONE_DEFAULT[] = { 0x111, 0x112, 0x114, 0x113, 0x11a, 0x11b, VK_LWIN, VK_ESCAPE, VK_F8, 0, VK_RETURN };
+const int ACTIONS_SMARTPHONE_DEFAULT[] = { 0x111, 0x112, 0x114, 0x113, 0x11a, 0x11b, VK_LWIN, VK_ESCAPE, VK_F8, 0, VK_RETURN, 0, 0 };
 #else
-const int ACTIONS_SMARTPHONE_DEFAULT[] = { '4', '6', '8', '2', 0x11a, 0x11b, '0', VK_ESCAPE, '9', 0, VK_RETURN };
+const int ACTIONS_SMARTPHONE_DEFAULT[] = { '4', '6', '8', '2', 0x11a, 0x11b, '0', VK_ESCAPE, '9', 0, VK_RETURN, 0, 0 };
 #endif
 
 void CEActionsSmartphone::init() {
@@ -74,7 +76,7 @@
 }
 
 String CEActionsSmartphone::domain() {
-	return "smartphone";
+	return ConfMan.kApplicationDomain;
 }
 
 int CEActionsSmartphone::version() {
@@ -108,6 +110,10 @@
 	_action_enabled[SMARTPHONE_ACTION_LEFTCLICK] = true;
 	// Right Click
 	_action_enabled[SMARTPHONE_ACTION_RIGHTCLICK] = true;
+	// Show virtual keyboard
+	_action_enabled[SMARTPHONE_ACTION_KEYBOARD] = true;
+	// Rotate display
+	_action_enabled[SMARTPHONE_ACTION_ROTATE] = true;
 }
 
 void CEActionsSmartphone::initInstanceGame() {
@@ -218,6 +224,12 @@
 				keydialogrunning = false;
 			}
 			return true;
+		case SMARTPHONE_ACTION_KEYBOARD:
+			_CESystem->swap_smartphone_keyboard();
+			return true;
+		case SMARTPHONE_ACTION_ROTATE:
+			_CESystem->smartphone_rotate_display();
+			return true;
 	}
 
 	return false;

Modified: scummvm/trunk/backends/wince/CEActionsSmartphone.h
===================================================================
--- scummvm/trunk/backends/wince/CEActionsSmartphone.h	2006-06-10 11:06:05 UTC (rev 23001)
+++ scummvm/trunk/backends/wince/CEActionsSmartphone.h	2006-06-10 11:07:28 UTC (rev 23002)
@@ -49,6 +49,8 @@
         SMARTPHONE_ACTION_ZONE,
 		SMARTPHONE_ACTION_FT_CHEAT,
 		SMARTPHONE_ACTION_BINDKEYS,
+		SMARTPHONE_ACTION_KEYBOARD,
+		SMARTPHONE_ACTION_ROTATE,
 
 		SMARTPHONE_ACTION_LAST
 };


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list