Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

appswitcher example: add the line actually needed to make this work! #353

Merged
merged 1 commit into from Aug 16, 2018
Merged

appswitcher example: add the line actually needed to make this work! #353

merged 1 commit into from Aug 16, 2018

Conversation

jamadagni
Copy link
Contributor

The value of appSwitchActive is nowhere set to true so this example would not work at all!

@algernon Please check.

@@ -28,6 +28,7 @@ namespace H = kaleidoscope::hostos;
static bool appSwitchActive = false;

const macro_t *macroAppSwitch(uint8_t keyState) {
appSwitchActive = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My first instinct was that this should be in the keyIsPressed() branch below, to not set it on key release. But in the end, that doesn't really matter, since cancel is done by a whole different key. I think this will be fine.

@algernon algernon merged commit 526b0e4 into keyboardio:master Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants