Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
Ultimute
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Grewe
Ultimute
Commits
a8c09d68
Commit
a8c09d68
authored
4 years ago
by
Jan Grewe
Browse files
Options
Downloads
Patches
Plain Diff
use WIN+SHIFT+A hotkeys by default (Microsoft PowerToys Video Conference Mute)
parent
8fc298ee
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.cpp
+5
-7
5 additions, 7 deletions
src/main.cpp
with
5 additions
and
7 deletions
src/main.cpp
+
5
−
7
View file @
a8c09d68
...
...
@@ -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
();
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment