Merge pull request #141 from cdisselkoen/update-for-new-Macros-API

Update for changes to Kaleidoscope-Macros no longer requiring END
pull/144/merge
Jesse Vincent 8 years ago committed by GitHub
commit 178dd0a5f1

@ -35,16 +35,16 @@ const macro_t *macroAppSwitch(uint8_t keyState) {
// Key was just pressed, or is being held // Key was just pressed, or is being held
if (keyIsPressed(keyState)) { if (keyIsPressed(keyState)) {
return MACRO(Dr(mod), D(Tab), END); return MACRO(Dr(mod), D(Tab));
} }
// Key was just released // Key was just released
if (keyToggledOff(keyState)) { if (keyToggledOff(keyState)) {
return MACRO(U(Tab), Dr(mod), END); return MACRO(U(Tab), Dr(mod));
} }
// Key is not pressed, and was not just released. // Key is not pressed, and was not just released.
// if appSwitchActive is true, we continue holding Alt. // if appSwitchActive is true, we continue holding Alt.
if (appSwitchActive) { if (appSwitchActive) {
return MACRO(Dr(mod), END); return MACRO(Dr(mod));
} }
// otherwise we do nothing // otherwise we do nothing
return MACRO_NONE; return MACRO_NONE;

@ -84,8 +84,7 @@ const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) {
D(LeftShift), T(M), U(LeftShift), T(O), T(D), T(E), T(L), D(LeftShift), T(M), U(LeftShift), T(O), T(D), T(E), T(L),
T(Spacebar), T(Spacebar),
W(100), W(100),
T(0), T(1), T(0), T(1));
END);
} }
return MACRO_NONE; return MACRO_NONE;
} }

Loading…
Cancel
Save