From 60fa7635b90e9850bceed953c97a8a5e2ebe126e Mon Sep 17 00:00:00 2001 From: travisutk Date: Fri, 4 Feb 2011 21:53:42 +0000 Subject: [PATCH 1/1] More MSKB letters. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@885 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/goodfet.nrf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/goodfet.nrf b/client/goodfet.nrf index 68d402d..0658f58 100755 --- a/client/goodfet.nrf +++ b/client/goodfet.nrf @@ -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 -- 2.20.1