From a8c09d68104bcc67b326bdbb97330b6862458d41 Mon Sep 17 00:00:00 2001 From: Jan Grewe <jan@faked.org> Date: Sat, 24 Apr 2021 12:32:29 +0200 Subject: [PATCH] use WIN+SHIFT+A hotkeys by default (Microsoft PowerToys Video Conference Mute) --- src/main.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 488aae6..b34a91c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4,12 +4,10 @@ #include <HID.h> #include <FastLED.h> -// Use this option for Windows and Linux: -const char HOTKEY_1 = KEY_LEFT_CTRL; -const char HOTKEY_2 = KEY_LEFT_ALT; -// Use this for OSX: -// const char HOTKEY_1 = KEY_LEFT_GUI; -// const char HOTKEY_2 = KEY_LEFT_ALT; +// Microsoft PowerToys default: Win + Shift + A +const char HOTKEY_1 = KEY_LEFT_GUI; +const char HOTKEY_2 = KEY_LEFT_SHIFT; +const char HOTKEY_3 = 'a'; #define BUTTON_PIN 2 #define LED_PIN 3 @@ -30,7 +28,7 @@ void sendHotkey() { Keyboard.press(HOTKEY_1); Keyboard.press(HOTKEY_2); - Keyboard.press('m'); + Keyboard.press(HOTKEY_3); Keyboard.releaseAll(); } -- GitLab