diff options
-rwxr-xr-x | genmap.py | 4 | ||||
-rw-r--r-- | hid/src/keymap.h.mako | 2 | ||||
-rw-r--r-- | kvmd/data/keymap.yaml.mako | 2 | ||||
-rw-r--r-- | testenv/linters/vulture-wl.py | 2 |
4 files changed, 5 insertions, 5 deletions
@@ -33,7 +33,7 @@ import mako.template # ===== @dataclasses.dataclass(frozen=True) class _KeyMapping: - kvmd_code: int + arduino_hid_code: int arduino_hid_key: str web_key: str @@ -47,7 +47,7 @@ def _read_keymap_in(path: str) -> List[_KeyMapping]: parts = list(map(str.strip, line.split())) if len(parts) >= 3: keymap.append(_KeyMapping( - kvmd_code=int(parts[0]), + arduino_hid_code=int(parts[0]), arduino_hid_key=parts[1], web_key=parts[2], )) diff --git a/hid/src/keymap.h.mako b/hid/src/keymap.h.mako index f8c85d79..6a965ca9 100644 --- a/hid/src/keymap.h.mako +++ b/hid/src/keymap.h.mako @@ -30,7 +30,7 @@ INLINE KeyboardKeycode keymap(uint8_t code) { switch(code) { % for km in sorted(keymap, key=operator.attrgetter("arduino_hid_key")): - case ${km.kvmd_code}: return ${km.arduino_hid_key}; + case ${km.arduino_hid_code}: return ${km.arduino_hid_key}; % endfor default: return KEY_ERROR_UNDEFINED; } diff --git a/kvmd/data/keymap.yaml.mako b/kvmd/data/keymap.yaml.mako index 8814b20b..820c0027 100644 --- a/kvmd/data/keymap.yaml.mako +++ b/kvmd/data/keymap.yaml.mako @@ -21,5 +21,5 @@ <%! import operator %> % for km in sorted(keymap, key=operator.attrgetter("web_key")): -${km.web_key}: ${km.kvmd_code} +${km.web_key}: ${km.arduino_hid_code} % endfor diff --git a/testenv/linters/vulture-wl.py b/testenv/linters/vulture-wl.py index 550190f5..9bdbc834 100644 --- a/testenv/linters/vulture-wl.py +++ b/testenv/linters/vulture-wl.py @@ -8,7 +8,7 @@ IpmiServer.handle_raw_request fake_rpi.RPi.GPIO -_KeyMapping.kvmd_code +_KeyMapping.arduino_hid_code _KeyMapping.arduino_hid_key _KeyMapping.web_key |