[Scummvm-cvs-logs] SF.net SVN: scummvm:[39164] scummvm/trunk/backends/platform/symbian/src/ SymbianActions.cpp

anotherguest at users.sourceforge.net anotherguest at users.sourceforge.net
Fri Mar 6 22:41:15 CET 2009


Revision: 39164
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39164&view=rev
Author:   anotherguest
Date:     2009-03-06 21:41:13 +0000 (Fri, 06 Mar 2009)

Log Message:
-----------
Added save action for Cruise

Modified Paths:
--------------
    scummvm/trunk/backends/platform/symbian/src/SymbianActions.cpp

Modified: scummvm/trunk/backends/platform/symbian/src/SymbianActions.cpp
===================================================================
--- scummvm/trunk/backends/platform/symbian/src/SymbianActions.cpp	2009-03-06 20:27:34 UTC (rev 39163)
+++ scummvm/trunk/backends/platform/symbian/src/SymbianActions.cpp	2009-03-06 21:41:13 UTC (rev 39164)
@@ -61,7 +61,7 @@
 #ifdef UIQ
 static const int ACTIONS_DEFAULT[ACTION_LAST] = { SDLK_UP, SDLK_DOWN, SDLK_LEFT, SDLK_RIGHT, SDLK_F1, SDLK_F2, SDLK_F5, SDLK_PAGEDOWN, '9', 0, 0, SDLK_PAGEUP, 0, 0, 0, 0, 0, 0, 0};
 #elif defined (S60)
-const int ACTIONS_DEFAULT[ACTION_LAST] = { 0, 0, 0, 0, 0, 0, '*', '#', '9', 0, 0, 0, 0, 0, 0, 0, '1', '2', '3'};
+const int ACTIONS_DEFAULT[ACTION_LAST] = { 0, 0, 0, 0, 0, 0, '*', '#', '9', 0, 0, 0, 0, 0, 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, 0, 0, 0, 0 ,0};
 #else
@@ -156,12 +156,18 @@
 	bool is_drascula = (strncmp(gameid.c_str(), "drascula",8) == 0);
 	bool is_tucker = (gameid == "tucker");
 	bool is_groovie = (gameid == "groovie");
+	bool is_cruise = (gameid == "cruise");
 
 	Actions::initInstanceGame();
 
 	// Initialize keys for different actions
 	// Pause
-	_key_action[ACTION_PAUSE].setKey(' ');
+	if(is_cruise) {
+		_key_action[ACTION_PAUSE].setKey('P');
+	} 
+	else {
+		_key_action[ACTION_PAUSE].setKey(' ');
+	}
 	_action_enabled[ACTION_PAUSE] = true;
 
 
@@ -175,7 +181,7 @@
 			_key_action[ACTION_SAVE].setKey(Common::ASCII_F1, Common::KEYCODE_F1); // F1 key for FOTAQ
 		} else if (is_sky) {
 			_key_action[ACTION_SAVE].setKey(Common::ASCII_F5, Common::KEYCODE_F5);
-		} else if (is_cine || is_drascula) {
+		} else if (is_cine || is_drascula || is_cruise) {
 			_key_action[ACTION_SAVE].setKey(Common::ASCII_F10, Common::KEYCODE_F10); // F10
 		} else if (is_agi) {
 			_key_action[ACTION_SAVE].setKey(Common::ASCII_ESCAPE, Common::KEYCODE_ESCAPE);


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