More MSKB letters.
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Fri, 4 Feb 2011 21:53:42 +0000 (21:53 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Fri, 4 Feb 2011 21:53:42 +0000 (21:53 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@885 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

client/goodfet.nrf

index 68d402d..0658f58 100755 (executable)
@@ -59,6 +59,7 @@ def printmspacket(packet,offset=1):
     
     letter=None;
     if ct[0]==0x0a and ct[1]==0x78:
+        #TODO replace this with a dictionary, and support modifiers.
         if ct[9]==0:
             #Key up event, not worth logging.
             pass;
@@ -79,8 +80,13 @@ def printmspacket(packet,offset=1):
             letter=ord('`');
         elif ct[9]==0x2C:
             letter=ord('_');
+        elif ct[9]==0x34:
+            letter=ord('\'');
+        elif ct[9]==0x36:
+            letter=ord(',');
         else:
             print "Unknown character 0x%02x." % ct[9];
+            letter=ord('?');
     if letter!=None:
         mskbstring="%s%c" % (mskbstring,letter);
         print "# %s" % mskbstring