diff options
author | Priyadi Iman Nurcahyo <priyadi@priyadi.net> | 2017-02-15 05:02:15 +0700 |
---|---|---|
committer | Priyadi Iman Nurcahyo <priyadi@priyadi.net> | 2017-02-15 05:02:15 +0700 |
commit | d369bfb83a74d94ed0fbb13f8ee3a8a1146da770 (patch) | |
tree | eb8cd798cdc1df228f08c3585caf27e2af20880d /tmk_core/common/action_layer.c | |
parent | 4010360912125c120904e2d5294963db2d4ded65 (diff) | |
download | qmk_firmware-d369bfb83a74d94ed0fbb13f8ee3a8a1146da770.tar.gz |
Add layer_state_set_kb hook
Diffstat (limited to 'tmk_core/common/action_layer.c')
-rw-r--r-- | tmk_core/common/action_layer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tmk_core/common/action_layer.c b/tmk_core/common/action_layer.c index a3c757964..3363a2e53 100644 --- a/tmk_core/common/action_layer.c +++ b/tmk_core/common/action_layer.c @@ -57,8 +57,14 @@ void default_layer_xor(uint32_t state) */ uint32_t layer_state = 0; +__attribute__((weak)) +uint32_t layer_state_set_kb(uint32_t state) { + return state; +} + static void layer_state_set(uint32_t state) { + state = layer_state_set_kb(state); dprint("layer_state: "); layer_debug(); dprint(" to "); layer_state = state; |