mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 09:01:54 +08:00
hid: using KEY_ERROR_UNDEFINED instead of 0
This commit is contained in:
@@ -29,7 +29,7 @@ def main() -> None:
|
||||
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}\n")
|
||||
hid_header_file.write("\t\tdefault: return KEY_ERROR_UNDEFINED;\n\t}\n}\n")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user