summaryrefslogtreecommitdiff
path: root/hid/genmap.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-07-11 06:30:47 +0000
committerDevaev Maxim <[email protected]>2018-07-11 06:30:47 +0000
commitf0c78e966ea1e1faf9206c47f254fe3f38ba1f34 (patch)
tree90defde77b08c4127aaab98d1eaace7434c26738 /hid/genmap.py
parent08a36a1fe0c0844df425566596f0f016eef677b8 (diff)
fixed keymapping
Diffstat (limited to 'hid/genmap.py')
-rwxr-xr-xhid/genmap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/hid/genmap.py b/hid/genmap.py
index fe65d449..2e3183a8 100755
--- a/hid/genmap.py
+++ b/hid/genmap.py
@@ -26,10 +26,10 @@ def main() -> None:
with open("src/keymap.h", "w") as hid_header_file:
hid_header_file.write("#include <HID-Project.h>\n\n#include \"inline.h\"\n\n\n")
- hid_header_file.write("INLINE uint8_t keymap(uint8_t code) {\n\tswitch(code) {\n")
+ hid_header_file.write("INLINE KeyboardKeycode keymap(uint8_t code) {\n\tswitch(code) {\n")
for (code, hid_key, _) in sorted(keymap, key=operator.itemgetter(1)):
hid_header_file.write("\t\tcase %d: return %s;\n" % (code, hid_key))
- hid_header_file.write("\t\tdefault: return 0;\n\t}\n}")
+ hid_header_file.write("\t\tdefault: return 0;\n\t}\n}\n")
if __name__ == "__main__":