projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More MSKB letters.
[goodfet]
/
client
/
goodfet.nrf
diff --git
a/client/goodfet.nrf
b/client/goodfet.nrf
index
68d402d
..
0658f58
100755
(executable)
--- 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:
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;
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('_');
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];
else:
print "Unknown character 0x%02x." % ct[9];
+ letter=ord('?');
if letter!=None:
mskbstring="%s%c" % (mskbstring,letter);
print "# %s" % mskbstring
if letter!=None:
mskbstring="%s%c" % (mskbstring,letter);
print "# %s" % mskbstring