diff options
author | Devaev Maxim <[email protected]> | 2020-10-29 02:29:40 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-11-11 22:24:25 +0300 |
commit | e54449fd8ef0ea98aea881d25c9bb134a3bc2e11 (patch) | |
tree | 5648cd7c1d14ed5bf46491d18ad1bc0b461962af /kvmd/keyboard/mappings.py.mako | |
parent | 08b96b7ada3363f599c9f58d091d9a06d54c2031 (diff) |
renamed serial keymap codes to mcu
Diffstat (limited to 'kvmd/keyboard/mappings.py.mako')
-rw-r--r-- | kvmd/keyboard/mappings.py.mako | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kvmd/keyboard/mappings.py.mako b/kvmd/keyboard/mappings.py.mako index 399ed75e..5f0fc9ad 100644 --- a/kvmd/keyboard/mappings.py.mako +++ b/kvmd/keyboard/mappings.py.mako @@ -27,7 +27,7 @@ from typing import Dict # ===== @dataclasses.dataclass(frozen=True) -class SerialKey: +class McuKey: code: int @@ -39,13 +39,13 @@ class OtgKey: @dataclasses.dataclass(frozen=True) class Key: - serial: SerialKey + mcu: McuKey otg: OtgKey <%! import operator %> KEYMAP: Dict[str, Key] = { -% for km in sorted(keymap, key=operator.attrgetter("serial_code")): - "${km.web_name}": Key(serial=SerialKey(code=${km.serial_code}), otg=OtgKey(code=${km.otg_key.code}, is_modifier=${km.otg_key.is_modifier})), +% for km in sorted(keymap, key=operator.attrgetter("mcu_code")): + "${km.web_name}": Key(mcu=McuKey(code=${km.mcu_code}), otg=OtgKey(code=${km.otg_key.code}, is_modifier=${km.otg_key.is_modifier})), % endfor } |