forked from kofal.net/zmk
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.
This commit is contained in:
12
src/keymap.c
12
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)
|
||||
|
||||
Reference in New Issue
Block a user