summaryrefslogtreecommitdiffstats
path: root/tmk_core/common/action_layer.h
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-02-14 21:33:04 -0500
committerGitHub <noreply@github.com>2017-02-14 21:33:04 -0500
commit7bef285553dee01bbcb1eaadefbfb39ed75baea4 (patch)
treedb88439016027f630fc82c5876a8f3248b5d3d27 /tmk_core/common/action_layer.h
parentfd2925efbac0d7963f3d267dd5264f08a0a4e9dc (diff)
parentbd8d717f1ff2eef42dfef490374a8cee61be5d87 (diff)
Merge pull request #1101 from priyadi/layer_state_set_kb
Add weak layer_state_set_kb hook
Diffstat (limited to 'tmk_core/common/action_layer.h')
-rw-r--r--tmk_core/common/action_layer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tmk_core/common/action_layer.h b/tmk_core/common/action_layer.h
index 025cf5420f..d89ed6e5ce 100644
--- a/tmk_core/common/action_layer.h
+++ b/tmk_core/common/action_layer.h
@@ -29,6 +29,9 @@ extern uint32_t default_layer_state;
void default_layer_debug(void);
void default_layer_set(uint32_t state);
+__attribute__((weak))
+uint32_t default_layer_state_set_kb(uint32_t state);
+
#ifndef NO_ACTION_LAYER
/* bitwise operation */
void default_layer_or(uint32_t state);
@@ -69,6 +72,8 @@ void layer_xor(uint32_t state);
#define layer_xor(state)
#define layer_debug()
+__attribute__((weak))
+uint32_t layer_state_set_kb(uint32_t state);
#endif
/* pressed actions cache */