diff options
Diffstat (limited to 'tmk_core')
-rw-r--r-- | tmk_core/common/action_layer.c | 7 | ||||
-rw-r--r-- | tmk_core/common/action_layer.h | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/tmk_core/common/action_layer.c b/tmk_core/common/action_layer.c index c6a166a823..277a8f5d95 100644 --- a/tmk_core/common/action_layer.c +++ b/tmk_core/common/action_layer.c @@ -64,10 +64,15 @@ void default_layer_xor(uint32_t state) uint32_t layer_state = 0; __attribute__((weak)) -uint32_t layer_state_set_kb(uint32_t state) { +uint32_t layer_state_set_user(uint32_t state) { return state; } +__attribute__((weak)) +uint32_t layer_state_set_kb(uint32_t state) { + return layer_state_set_user(state); +} + static void layer_state_set(uint32_t state) { state = layer_state_set_kb(state); diff --git a/tmk_core/common/action_layer.h b/tmk_core/common/action_layer.h index d89ed6e5ce..e71604d872 100644 --- a/tmk_core/common/action_layer.h +++ b/tmk_core/common/action_layer.h @@ -73,6 +73,8 @@ void layer_xor(uint32_t state); #define layer_debug() __attribute__((weak)) +uint32_t layer_state_set_user(uint32_t state); +__attribute__((weak)) uint32_t layer_state_set_kb(uint32_t state); #endif |