diff options
author | Devaev Maxim <[email protected]> | 2019-09-26 04:23:50 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-09-26 04:23:50 +0300 |
commit | 5e1e3cdf640face90ac5898ea4de7484c5edeae1 (patch) | |
tree | 71997b466302594a43929076a817b5748927512e /genmap.py | |
parent | 2f767573d301dbc2b9403363a71ff7acf38049b4 (diff) |
refactoring
Diffstat (limited to 'genmap.py')
-rwxr-xr-x | genmap.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -33,8 +33,8 @@ import mako.template # ===== @dataclasses.dataclass(frozen=True) class _KeyMapping: - arduino_hid_code: int - arduino_hid_key: str + serial_hid_code: int + serial_hid_key: str web_key: str @@ -47,8 +47,8 @@ def _read_keymap_in(path: str) -> List[_KeyMapping]: parts = list(map(str.strip, line.split())) if len(parts) >= 3: keymap.append(_KeyMapping( - arduino_hid_code=int(parts[0]), - arduino_hid_key=parts[1], + serial_hid_code=int(parts[0]), + serial_hid_key=parts[1], web_key=parts[2], )) return keymap |