[Tux4kids-commits] r1463 - tuxtype/trunk/src

David Bruce dbruce-guest at alioth.debian.org
Thu Aug 27 03:21:12 UTC 2009


Author: dbruce-guest
Date: 2009-08-27 03:21:12 +0000 (Thu, 27 Aug 2009)
New Revision: 1463

Modified:
   tuxtype/trunk/src/alphabet.c
Log:
fix of keyboard hinting off-by-one problem in bottom row 



Modified: tuxtype/trunk/src/alphabet.c
===================================================================
--- tuxtype/trunk/src/alphabet.c	2009-08-26 20:02:12 UTC (rev 1462)
+++ tuxtype/trunk/src/alphabet.c	2009-08-27 03:21:12 UTC (rev 1463)
@@ -1077,83 +1077,83 @@
 		keyboard_entry->shift=1;
 		keyboard_entry->finger=9;
 		break;
-	case 'z':strcpy(keyboard_entry->keyname,"D01");
+	case 'z':strcpy(keyboard_entry->keyname,"D02");
 		keyboard_entry->shift=0;
 		keyboard_entry->finger=0;
 		break;
-	case 'Z':strcpy(keyboard_entry->keyname,"D01");
+	case 'Z':strcpy(keyboard_entry->keyname,"D02");
 		keyboard_entry->shift=2;
 		keyboard_entry->finger=0;
 		break;
-	case 'x':strcpy(keyboard_entry->keyname,"D02");
+	case 'x':strcpy(keyboard_entry->keyname,"D03");
 		keyboard_entry->shift=0;
 		keyboard_entry->finger=1;
 		break;
-	case 'X':strcpy(keyboard_entry->keyname,"D02");
+	case 'X':strcpy(keyboard_entry->keyname,"D03");
 		keyboard_entry->shift=2;
 		keyboard_entry->finger=1;
 		break;
-	case 'c':strcpy(keyboard_entry->keyname,"D03");
+	case 'c':strcpy(keyboard_entry->keyname,"D04");
 		keyboard_entry->shift=0;
 		keyboard_entry->finger=2;
 		break;
-	case 'C':strcpy(keyboard_entry->keyname,"D03");
+	case 'C':strcpy(keyboard_entry->keyname,"D04");
 		keyboard_entry->shift=2;
 		keyboard_entry->finger=2;
 		break;
-	case 'v':strcpy(keyboard_entry->keyname,"D04");
+	case 'v':strcpy(keyboard_entry->keyname,"D05");
 		keyboard_entry->shift=0;
 		keyboard_entry->finger=3;
 		break;
-	case 'V':strcpy(keyboard_entry->keyname,"D04");
+	case 'V':strcpy(keyboard_entry->keyname,"D05");
 		keyboard_entry->shift=2;
 		keyboard_entry->finger=3;
 		break;
-	case 'b':strcpy(keyboard_entry->keyname,"D05");
+	case 'b':strcpy(keyboard_entry->keyname,"D06");
 		keyboard_entry->shift=0;
 		keyboard_entry->finger=3;
 		break;
-	case 'B':strcpy(keyboard_entry->keyname,"D05");
+	case 'B':strcpy(keyboard_entry->keyname,"D06");
 		keyboard_entry->shift=2;
 		keyboard_entry->finger=3;
 		break;
-	case 'n':strcpy(keyboard_entry->keyname,"D06");
+	case 'n':strcpy(keyboard_entry->keyname,"D07");
 		keyboard_entry->shift=0;
 		keyboard_entry->finger=6;
 		break;
-	case 'N':strcpy(keyboard_entry->keyname,"D06");
+	case 'N':strcpy(keyboard_entry->keyname,"D07");
 		keyboard_entry->shift=1;
 		keyboard_entry->finger=6;
 		break;
-	case 'm':strcpy(keyboard_entry->keyname,"D07");
+	case 'm':strcpy(keyboard_entry->keyname,"D08");
 		keyboard_entry->shift=0;
 		keyboard_entry->finger=6;
 		break;
-	case 'M':strcpy(keyboard_entry->keyname,"D07");
+	case 'M':strcpy(keyboard_entry->keyname,"D08");
 		keyboard_entry->shift=1;
 		keyboard_entry->finger=6;
 		break;
-	case ',':strcpy(keyboard_entry->keyname,"D08");
+	case ',':strcpy(keyboard_entry->keyname,"D09");
 		keyboard_entry->shift=0;
 		keyboard_entry->finger=7;
 		break;
-	case '<':strcpy(keyboard_entry->keyname,"D08");
+	case '<':strcpy(keyboard_entry->keyname,"D09");
 		keyboard_entry->shift=1;
 		keyboard_entry->finger=7;
 		break;
-	case '.':strcpy(keyboard_entry->keyname,"D09");
+	case '.':strcpy(keyboard_entry->keyname,"D010");
 		keyboard_entry->shift=0;
 		keyboard_entry->finger=8;
 		break;
-	case '>':strcpy(keyboard_entry->keyname,"D09");
+	case '>':strcpy(keyboard_entry->keyname,"D010");
 		keyboard_entry->shift=1;
 		keyboard_entry->finger=8;
 		break;
-	case '/':strcpy(keyboard_entry->keyname,"D10");
+	case '/':strcpy(keyboard_entry->keyname,"D11");
 		keyboard_entry->shift=0;
 		keyboard_entry->finger=9;
 		break;
-	case '?':strcpy(keyboard_entry->keyname,"D10");
+	case '?':strcpy(keyboard_entry->keyname,"D11");
 		keyboard_entry->shift=1;
 		keyboard_entry->finger=9;
 		break;
@@ -1219,8 +1219,8 @@
       case 'A': new.y += 6;   new.x += 12; break;
       case 'B': new.y += 39;  new.x += 23; break;
       case 'C': new.y += 69;  new.x += 33; break;
-//      case 'D': new.y += 96;  new.x += 23; break;
-      case 'D': new.y += 99;  new.x += 54; break;
+      case 'D': new.y += 100;  new.x += 21; break;
+//      case 'D': new.y += 99;  new.x += 54; break;
       case 'E': new.y += 129; break;
       default: render = 0; break;
     }




More information about the Tux4kids-commits mailing list