Universal Translator

Dependencies:   EthernetNetIf TextLCD mbed PS2 HTTPClient

Revision:
1:5ae213418d04
Parent:
0:c69af1faeb95
--- a/keyProcess.cpp	Mon Feb 28 16:56:11 2011 +0000
+++ b/keyProcess.cpp	Mon Feb 28 17:37:46 2011 +0000
@@ -123,7 +123,7 @@
                         }
                     }
                 }
-                if (evt_kb.scancode[i] == 0x66) {//backspace deletes a character
+               if (evt_kb.scancode[i] == 0x66) {//backspace deletes a character
                     if(column > 0) column--;
                     else {
                         if (row != 0) {
@@ -136,12 +136,10 @@
                     if (row != 0) {
                         for(int j = 0; j < 32; j++) {
                             if(rowstr[((row-1)*16)+j] != '\0') lcd.printf("%c", rowstr[(row-1)*16+j]);
-                            if(j == (column+16)) lcd.printf("%c", '\0');
                         }
                     } else {
                         for(int j = 0; j < 32; j++) {
-                            if(rowstr[(row*16)+j] != '\0') lcd.printf("%c", rowstr[(row)*j]);
-                            if(j == column) lcd.printf("%c", '\0');
+                            if(rowstr[(row*16)+j] != '\0') lcd.printf("%c", rowstr[(row)*16+j]);
                         }
                     }
                 }