[Scummvm-cvs-logs] SF.net SVN: scummvm: [23731] scummvm/branches/branch-0-9-0/backends/symbian/src/SymbianActions.cpp

anotherguest at users.sourceforge.net anotherguest at users.sourceforge.net
Sun Aug 20 12:46:28 CEST 2006


Revision: 23731
Author:   anotherguest
Date:     2006-08-20 03:46:22 -0700 (Sun, 20 Aug 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=23731&view=rev

Log Message:
-----------
* Keymapping added for Kyra

Modified Paths:
--------------
    scummvm/branches/branch-0-9-0/backends/symbian/src/SymbianActions.cpp
Modified: scummvm/branches/branch-0-9-0/backends/symbian/src/SymbianActions.cpp
===================================================================
--- scummvm/branches/branch-0-9-0/backends/symbian/src/SymbianActions.cpp	2006-08-20 09:14:26 UTC (rev 23730)
+++ scummvm/branches/branch-0-9-0/backends/symbian/src/SymbianActions.cpp	2006-08-20 10:46:22 UTC (rev 23731)
@@ -54,7 +54,7 @@
 #ifdef UIQ
 static const int ACTIONS_DEFAULT[ACTION_LAST] = { 0, 0, 0, 0, SDLK_F1, SDLK_F2, SDLK_F5, SDLK_PAGEDOWN, 0, 0, 0, SDLK_PAGEUP, 0, 0};
 #elif defined (S60)
-const int ACTIONS_DEFAULT[ACTION_LAST] = { 0, 0, 0, 0, 0, 0, '*', '#', '9',0,0,0,0,0};
+const int ACTIONS_DEFAULT[ACTION_LAST] = { 0, 0, 0, 0, 0, 0, '*', '#', '9', 0, 0, 0, 0, 0};
 #elif defined (S90)
 const int ACTIONS_DEFAULT[ACTION_LAST] = { SDLK_UP, SDLK_DOWN, SDLK_LEFT, SDLK_RIGHT, 0, 0, SDLK_MENU, SDLK_ESCAPE, 0, 0,0,0,0,0};
 #else
@@ -128,6 +128,7 @@
 	bool is_gob = (strncmp(gameid.c_str(), "gob", 3) == 0);
 	bool is_ite = ((strncmp(gameid.c_str(), "ite", 3) == 0) ||
 				  (strncmp(gameid.c_str(), "ihnm", 4) == 0));
+	bool is_kyra = (gameid == "kyra1");
 	
 	Actions::initInstanceGame();
 
@@ -137,7 +138,7 @@
 
 	// Initialize keys for different actions
 	// Save
-	if (is_simon || is_gob) 
+	if (is_simon || is_gob || is_kyra) 
 		_action_enabled[ACTION_SAVE] = false;
 	else if (is_queen || is_ite) {
 		_action_enabled[ACTION_SAVE] = true;


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