[Scummvm-cvs-logs] SF.net SVN: scummvm: [31969] scummvm/trunk/engines/made

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Fri May 9 21:29:18 CEST 2008


Revision: 31969
          http://scummvm.svn.sourceforge.net/scummvm/?rev=31969&view=rev
Author:   thebluegr
Date:     2008-05-09 12:29:17 -0700 (Fri, 09 May 2008)

Log Message:
-----------
The backspace key is now working

Modified Paths:
--------------
    scummvm/trunk/engines/made/scriptfuncs_lgop2.cpp
    scummvm/trunk/engines/made/scriptfuncs_mhne.cpp
    scummvm/trunk/engines/made/scriptfuncs_rtz.cpp

Modified: scummvm/trunk/engines/made/scriptfuncs_lgop2.cpp
===================================================================
--- scummvm/trunk/engines/made/scriptfuncs_lgop2.cpp	2008-05-09 16:11:01 UTC (rev 31968)
+++ scummvm/trunk/engines/made/scriptfuncs_lgop2.cpp	2008-05-09 19:29:17 UTC (rev 31969)
@@ -170,6 +170,10 @@
 
 		case Common::EVENT_KEYDOWN:
 			_vm->_eventKey = event.kbd.ascii;
+			// For unknown reasons, the game accepts ASCII code
+			// 9 as backspace
+			if (_vm->_eventKey == Common::KEYCODE_BACKSPACE)
+				_vm->_eventKey = 9;
 			eventNum = 5;
 			break;
 

Modified: scummvm/trunk/engines/made/scriptfuncs_mhne.cpp
===================================================================
--- scummvm/trunk/engines/made/scriptfuncs_mhne.cpp	2008-05-09 16:11:01 UTC (rev 31968)
+++ scummvm/trunk/engines/made/scriptfuncs_mhne.cpp	2008-05-09 19:29:17 UTC (rev 31969)
@@ -175,6 +175,10 @@
 
 		case Common::EVENT_KEYDOWN:
 			_vm->_eventKey = event.kbd.ascii;
+			// For unknown reasons, the game accepts ASCII code
+			// 9 as backspace
+			if (_vm->_eventKey == Common::KEYCODE_BACKSPACE)
+				_vm->_eventKey = 9;
 			eventNum = 5;
 			break;
 

Modified: scummvm/trunk/engines/made/scriptfuncs_rtz.cpp
===================================================================
--- scummvm/trunk/engines/made/scriptfuncs_rtz.cpp	2008-05-09 16:11:01 UTC (rev 31968)
+++ scummvm/trunk/engines/made/scriptfuncs_rtz.cpp	2008-05-09 19:29:17 UTC (rev 31969)
@@ -218,6 +218,10 @@
 
 		case Common::EVENT_KEYDOWN:
 			_vm->_eventKey = event.kbd.ascii;
+			// For unknown reasons, the game accepts ASCII code
+			// 9 as backspace
+			if (_vm->_eventKey == Common::KEYCODE_BACKSPACE)
+				_vm->_eventKey = 9;
 			eventNum = 5;
 			break;
 


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