|
|
|
@ -48,6 +48,11 @@ def write_caps(char):
|
|
|
|
|
write_report(chr(32)+NULL_CHAR+chr(char)+NULL_CHAR*5)
|
|
|
|
|
def write_str(word):
|
|
|
|
|
for letter in word:
|
|
|
|
|
if letter == "?":
|
|
|
|
|
letter = "/"
|
|
|
|
|
write_caps(keycodes.keycodelst[letter])
|
|
|
|
|
write_report(NULL_CHAR*8)
|
|
|
|
|
continue
|
|
|
|
|
if letter == "~":
|
|
|
|
|
letter = "`"
|
|
|
|
|
write_caps(keycodes.keycodelst[letter])
|
|
|
|
@ -85,7 +90,7 @@ def write_str(word):
|
|
|
|
|
try:
|
|
|
|
|
write_char(keycodes.keycodelst[letter])
|
|
|
|
|
except:
|
|
|
|
|
print("Unknown keycode")
|
|
|
|
|
print("Unknown HID keycode")
|
|
|
|
|
finally:
|
|
|
|
|
write_report(NULL_CHAR*8)
|
|
|
|
|
|
|
|
|
@ -95,7 +100,7 @@ def write_special(input):
|
|
|
|
|
try:
|
|
|
|
|
write_char(keycodes.keycodelst[input])
|
|
|
|
|
except:
|
|
|
|
|
print("Unsupported keycode! Ask Cole Deck to add support.")
|
|
|
|
|
print("Unknown HID keycode")
|
|
|
|
|
finally:
|
|
|
|
|
write_report(NULL_CHAR*8)
|
|
|
|
|
|
|
|
|
|