[Scummvm-cvs-logs] CVS: scummvm/backends/dc input.cpp,1.10,1.10.2.1

Marcus Comstedt marcus_c at users.sourceforge.net
Mon Jul 28 13:41:16 CEST 2003


Update of /cvsroot/scummvm/scummvm/backends/dc
In directory sc8-pr-cvs1:/tmp/cvs-serv26209

Modified Files:
      Tag: branch-0-5-0
	input.cpp 
Log Message:
Changed sematics of X button to allow boxing in Indy (I hope...)

Index: input.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/dc/input.cpp,v
retrieving revision 1.10
retrieving revision 1.10.2.1
diff -u -d -r1.10 -r1.10.2.1
--- input.cpp	18 Jun 2003 21:15:08 -0000	1.10
+++ input.cpp	28 Jul 2003 20:40:24 -0000	1.10.2.1
@@ -29,6 +29,7 @@
 int handleInput(struct mapledev *pad, int &mouse_x, int &mouse_y,
 		byte &shiftFlags)
 {
+  static const char numpadmap[] = "0000039601740285";
   int lmb=0, rmb=0, newkey=0;
   static int lastkey = 0;
   static byte lastlmb = 0, lastrmb = 0;
@@ -44,7 +45,7 @@
 
       if(!(buttons & 8)) newkey = 319;
       else if(!(buttons & 512)) newkey = ' ';
-      else if(!(buttons & 1024)) newkey = '0';
+      else if(!(buttons & 1024)) newkey = numpadmap[(buttons>>4)&15];
 
       if(!(buttons & 128)) mouse_x++;
       if(!(buttons & 64)) mouse_x--;





More information about the Scummvm-git-logs mailing list