diff options
author | Erez Zukerman <ezuk@madmimi.com> | 2016-04-07 15:21:06 +0300 |
---|---|---|
committer | Erez Zukerman <ezuk@madmimi.com> | 2016-04-07 15:21:06 +0300 |
commit | 9cfc74c35b940884618b0fe1e6fd25c570e1c974 (patch) | |
tree | f4372d9b26521207d5106dd5a255f0ce285417ea /keyboard/planck/keymaps/default | |
parent | ee2ee7f4f049dda385a9db7dddd8e7e91681315b (diff) |
[Erez & Jack] Makes tri-layer available across Quantum
Diffstat (limited to 'keyboard/planck/keymaps/default')
-rw-r--r-- | keyboard/planck/keymaps/default/keymap.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/keyboard/planck/keymaps/default/keymap.c b/keyboard/planck/keymaps/default/keymap.c index dee2840f2d..56092d04fb 100644 --- a/keyboard/planck/keymaps/default/keymap.c +++ b/keyboard/planck/keymaps/default/keymap.c @@ -174,16 +174,7 @@ float tone_dv[][2] = { }; #endif -#define IS_LAYER_ON(layer) ((layer_state) & (1<<(layer))) -#define IS_LAYER_OFF(layer) ((!layer_state) & (1<<(layer))) -void update_tri_layer(uint8_t layer1, uint8_t layer2, uint8_t layer3) { - if (IS_LAYER_ON(layer1) && IS_LAYER_ON(layer2)) { - layer_on(layer3); - } else { - layer_off(layer3); - } -} const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { // MACRODOWN only works in this function |