From d4c72ee93f5ce6afcb6d6276be508e19a54044d0 Mon Sep 17 00:00:00 2001 From: Dreista Date: Fri, 21 Jul 2023 01:01:07 -0400 Subject: [PATCH 1/2] Add KC_CPNL, KC_ASST, KC_MCTL, and KC_LPAD --- src/main/python/keycodes/keycodes.py | 9 +++++++++ src/main/python/keycodes/keycodes_v5.py | 4 ++++ src/main/python/keycodes/keycodes_v6.py | 4 ++++ 3 files changed, 17 insertions(+) diff --git a/src/main/python/keycodes/keycodes.py b/src/main/python/keycodes/keycodes.py index a29f206c9d..ba1bbe4afd 100644 --- a/src/main/python/keycodes/keycodes.py +++ b/src/main/python/keycodes/keycodes.py @@ -323,6 +323,10 @@ def resolve(cls, qmk_constant): "KC_MRWD", "KC_BRIU", "KC_BRID", + "KC_CPNL", + "KC_ASST", + "KC_MCTL", + "KC_LPAD", "KC_LCTRL", "KC_LSHIFT", "KC_LALT", @@ -728,6 +732,11 @@ def resolve(cls, qmk_constant): K("KC_BRIU", "Bright.\nUp", "Increase the brightness of screen (Laptop)", alias=["KC_BRIGHTNESS_UP"]), K("KC_BRID", "Bright.\nDown", "Decrease the brightness of screen (Laptop)", alias=["KC_BRIGHTNESS_DOWN"]), + K("KC_CPNL", "Ctrl.\nPanel", "Open Control Panel (Windows)", alias=["KC_CONTROL_PANEL"]), + K("KC_ASST", "Asst.", "Launch Context-Aware Assistant (Windows)", alias=["KC_ASSISTANT"]), + K("KC_MCTL", "MCtrl", "Open Mission Control (macOS)", alias=["KC_MISSION_CONTROL"]), + K("KC_LPAD", "LPad", "Open Launchpad (macOS)", alias=["KC_LAUNCHPAD"]), + K("KC_MPRV", "Media\nPrev", "Previous Track", alias=["KC_MEDIA_PREV_TRACK"]), K("KC_MNXT", "Media\nNext", "Next Track", alias=["KC_MEDIA_NEXT_TRACK"]), K("KC_MUTE", "Mute", "Mute Audio", alias=["KC_AUDIO_MUTE"]), diff --git a/src/main/python/keycodes/keycodes_v5.py b/src/main/python/keycodes/keycodes_v5.py index 852afd8728..8f94baf28d 100644 --- a/src/main/python/keycodes/keycodes_v5.py +++ b/src/main/python/keycodes/keycodes_v5.py @@ -371,6 +371,10 @@ class keycodes_v5: "KC_WFAV": 186, "KC_BRIU": 189, "KC_BRID": 190, + "KC_CPNL": 0xBF, + "KC_ASST": 0xC0, + "KC_MCTL": 0xC1, + "KC_LPAD": 0xC2, "KC_MPRV": 172, "KC_MNXT": 171, "KC_MUTE": 168, diff --git a/src/main/python/keycodes/keycodes_v6.py b/src/main/python/keycodes/keycodes_v6.py index 59bf71f311..448c54a606 100644 --- a/src/main/python/keycodes/keycodes_v6.py +++ b/src/main/python/keycodes/keycodes_v6.py @@ -372,6 +372,10 @@ class keycodes_v6: "KC_WFAV": 186, "KC_BRIU": 189, "KC_BRID": 190, + "KC_CPNL": 0xBF, + "KC_ASST": 0xC0, + "KC_MCTL": 0xC1, + "KC_LPAD": 0xC2, "KC_MPRV": 172, "KC_MNXT": 171, "KC_MUTE": 168, From 52cc6f366f1832922f9adcd68f64afc1da18b5f0 Mon Sep 17 00:00:00 2001 From: Dreista Date: Sat, 22 Jul 2023 15:29:42 -0400 Subject: [PATCH 2/2] Remove keycodes from v5 protocol --- src/main/python/keycodes/keycodes_v5.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/python/keycodes/keycodes_v5.py b/src/main/python/keycodes/keycodes_v5.py index 8f94baf28d..852afd8728 100644 --- a/src/main/python/keycodes/keycodes_v5.py +++ b/src/main/python/keycodes/keycodes_v5.py @@ -371,10 +371,6 @@ class keycodes_v5: "KC_WFAV": 186, "KC_BRIU": 189, "KC_BRID": 190, - "KC_CPNL": 0xBF, - "KC_ASST": 0xC0, - "KC_MCTL": 0xC1, - "KC_LPAD": 0xC2, "KC_MPRV": 172, "KC_MNXT": 171, "KC_MUTE": 168,