diff options
Diffstat (limited to 'quantum/keymap_common.c')
| -rw-r--r-- | quantum/keymap_common.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/quantum/keymap_common.c b/quantum/keymap_common.c index e3030a886..3a00d36f0 100644 --- a/quantum/keymap_common.c +++ b/quantum/keymap_common.c | |||
| @@ -291,3 +291,11 @@ action_t keymap_func_to_action(uint16_t keycode) | |||
| 291 | // For FUNC without 8bit limit | 291 | // For FUNC without 8bit limit |
| 292 | return (action_t){ .code = pgm_read_word(&fn_actions[(int)keycode]) }; | 292 | return (action_t){ .code = pgm_read_word(&fn_actions[(int)keycode]) }; |
| 293 | } | 293 | } |
| 294 | |||
| 295 | void update_tri_layer(uint8_t layer1, uint8_t layer2, uint8_t layer3) { | ||
| 296 | if (IS_LAYER_ON(layer1) && IS_LAYER_ON(layer2)) { | ||
| 297 | layer_on(layer3); | ||
| 298 | } else { | ||
| 299 | layer_off(layer3); | ||
| 300 | } | ||
| 301 | } | ||
