summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-05-18 13:42:41 -0400
committerPete Johanson <peter@peterjohanson.com>2020-05-18 13:42:41 -0400
commitf478438f01e081514f255ce67f7b75935ee7b51a (patch)
tree22595d1f285d5937af3f93cc752ff2feee5e26fd /src
parentc1905745b3578037d1791bd634a3d1607cafd525 (diff)
Implement raise/lower for default keymap.
* Properly allow includes for keymaps to allow defining custom keycodes, and then adding them to the keymap.overlay file. * Fix keymap.c loading after build refactor. * Fix for deactivating a layer working properly. * Fix default keymap to put transparent in proper spots to make raise/lower keycodes work as expected. * Add custom raise/lower keycode handling to default keymap.
Diffstat (limited to 'src')
-rw-r--r--src/keymap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/keymap.c b/src/keymap.c
index b47809b..b8dfb6f 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -31,12 +31,12 @@ static zmk_key zmk_keymap[ZMK_KEYMAP_LAYERS_LEN][ZMK_MATRIX_ROWS * ZMK_MATRIX_CO
#endif
};
-#define SET_LAYER_STATE(layer, state) \
- if (layer >= 32) \
- { \
- return false; \
- } \
- WRITE_BIT(zmk_keymap_layer_state, layer, true); \
+#define SET_LAYER_STATE(layer, state) \
+ if (layer >= 32) \
+ { \
+ return false; \
+ } \
+ WRITE_BIT(zmk_keymap_layer_state, layer, state); \
return true;
bool zmk_keymap_layer_activate(u8_t layer)