summaryrefslogtreecommitdiff
path: root/kvmd/keyboard/mappings.py.mako
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/keyboard/mappings.py.mako')
-rw-r--r--kvmd/keyboard/mappings.py.mako6
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
}