Remove the predefined macros

However cool they are, i don’t really use them.
This commit is contained in:
Gergely Polonkai 2022-06-25 07:25:02 +02:00
parent 091c29ed2e
commit 0da0c8c003
No known key found for this signature in database
GPG Key ID: 2D2885533B869ED4

View File

@ -46,11 +46,6 @@
#include "TapDance.h" #include "TapDance.h"
enum {
MACRO_VERSION_INFO,
MACRO_ANY,
};
/** The Model 100's key layouts are defined as 'keymaps'. /** The Model 100's key layouts are defined as 'keymaps'.
* *
* Each keymap is defined as a list using the 'KEYMAP_STACKED' macro, built * Each keymap is defined as a list using the 'KEYMAP_STACKED' macro, built
@ -102,7 +97,7 @@ KEYMAPS(
Key_LeftControl, Key_Backspace, OSL(SHIFTED), Key_Escape, Key_LeftControl, Key_Backspace, OSL(SHIFTED), Key_Escape,
OSL(FUNCTION), OSL(FUNCTION),
M(1), Key_6, Key_7, Key_8, Key_9, Key_Backtick, MoveToLayer(HUN), ___, Key_6, Key_7, Key_8, Key_9, Key_Backtick, MoveToLayer(HUN),
TD(1), Key_F, Key_G, Key_C, Key_R, Key_L, LSHIFT(Key_7), TD(1), Key_F, Key_G, Key_C, Key_R, Key_L, LSHIFT(Key_7),
Key_D, Key_H, Key_T, Key_N, Key_S, LSHIFT(Key_1), Key_D, Key_H, Key_T, Key_N, Key_S, LSHIFT(Key_1),
Key_Enter, Key_B, Key_M, Key_W, Key_V, Key_Y, Key_Slash, Key_Enter, Key_B, Key_M, Key_W, Key_V, Key_Y, Key_Slash,
@ -117,7 +112,7 @@ KEYMAPS(
___, LSHIFT(Key_Backspace), ___, ___, ___, LSHIFT(Key_Backspace), ___, ___,
___, ___,
M(0), RALT(Key_3), RALT(Key_C), RALT(Key_Slash), LSHIFT(Key_8), LSHIFT(Key_9), MoveToLayer(COLEMAK), ___, RALT(Key_3), RALT(Key_C), RALT(Key_Slash), LSHIFT(Key_8), LSHIFT(Key_9), MoveToLayer(COLEMAK),
LSHIFT(Key_Enter), LSHIFT(Key_F), LSHIFT(Key_G), LSHIFT(Key_C), LSHIFT(Key_R), LSHIFT(Key_L), LSHIFT(Key_3), LSHIFT(Key_Enter), LSHIFT(Key_F), LSHIFT(Key_G), LSHIFT(Key_C), LSHIFT(Key_R), LSHIFT(Key_L), LSHIFT(Key_3),
LSHIFT(Key_D), LSHIFT(Key_H), LSHIFT(Key_T), LSHIFT(Key_N), LSHIFT(Key_S), LSHIFT(Key_2), LSHIFT(Key_D), LSHIFT(Key_H), LSHIFT(Key_T), LSHIFT(Key_N), LSHIFT(Key_S), LSHIFT(Key_2),
___, LSHIFT(Key_B), LSHIFT(Key_M), LSHIFT(Key_W), LSHIFT(Key_V), LSHIFT(Key_Y), LSHIFT(Key_Slash), ___, LSHIFT(Key_B), LSHIFT(Key_M), LSHIFT(Key_W), LSHIFT(Key_V), LSHIFT(Key_Y), LSHIFT(Key_Slash),
@ -233,34 +228,6 @@ KEYMAPS(
/* Re-enable astyle's indent enforcement */ /* Re-enable astyle's indent enforcement */
// clang-format on // clang-format on
static void versionInfoMacro(uint8_t key_state) {
if (keyToggledOn(key_state)) {
Macros.type(PSTR("Keyboardio Model 100 - Kaleidoscope "));
Macros.type(PSTR(BUILD_INFORMATION));
}
}
static void anyKeyMacro(KeyEvent &event) {
if (keyToggledOn(event.state)) {
event.key.setKeyCode(Key_A.getKeyCode() + (uint8_t)(millis() % 36));
event.key.setFlags(0);
}
}
const macro_t *macroAction(uint8_t macro_id, KeyEvent &event) {
switch (macro_id) {
case MACRO_VERSION_INFO:
versionInfoMacro(event.state);
break;
case MACRO_ANY:
anyKeyMacro(event);
break;
}
return MACRO_NONE;
}
void toggleLedsOnSuspendResume( void toggleLedsOnSuspendResume(
kaleidoscope::plugin::HostPowerManagement::Event event) { kaleidoscope::plugin::HostPowerManagement::Event event) {
switch (event) { switch (event) {