diff options
author | Maxim Devaev <[email protected]> | 2022-07-22 04:36:54 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-07-22 04:36:54 +0300 |
commit | 867412a6cdc91f997baa42cee92df2b466dfdc75 (patch) | |
tree | dbb0da45518763f2b211cee3f90f963b9957a254 /kvmd/keyboard/mappings.py.mako | |
parent | 249098b41c2372052ff90d017f18f30772d1f839 (diff) |
renamed otg key to usb key
Diffstat (limited to 'kvmd/keyboard/mappings.py.mako')
-rw-r--r-- | kvmd/keyboard/mappings.py.mako | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/keyboard/mappings.py.mako b/kvmd/keyboard/mappings.py.mako index 0cbde02f..91d46297 100644 --- a/kvmd/keyboard/mappings.py.mako +++ b/kvmd/keyboard/mappings.py.mako @@ -32,7 +32,7 @@ class McuKey: @dataclasses.dataclass(frozen=True) -class OtgKey: +class UsbKey: code: int is_modifier: bool @@ -40,12 +40,12 @@ class OtgKey: @dataclasses.dataclass(frozen=True) class Key: mcu: McuKey - otg: OtgKey + usb: UsbKey <%! import operator %> KEYMAP: Dict[str, Key] = { % 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})), + "${km.web_name}": Key(mcu=McuKey(code=${km.mcu_code}), usb=UsbKey(code=${km.usb_key.code}, is_modifier=${km.usb_key.is_modifier})), % endfor } |