diff options
Diffstat (limited to 'quantum/keymap_common.h')
| -rw-r--r-- | quantum/keymap_common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/quantum/keymap_common.h b/quantum/keymap_common.h index 4a877d2a7..7452a1ff3 100644 --- a/quantum/keymap_common.h +++ b/quantum/keymap_common.h | |||
| @@ -208,5 +208,9 @@ extern const uint16_t fn_actions[]; | |||
| 208 | #define UNICODE(n) (n | 0x8000) | 208 | #define UNICODE(n) (n | 0x8000) |
| 209 | #define UC(n) UNICODE(n) | 209 | #define UC(n) UNICODE(n) |
| 210 | 210 | ||
| 211 | // For tri-layer | ||
| 212 | void update_tri_layer(uint8_t layer1, uint8_t layer2, uint8_t layer3); | ||
| 213 | #define IS_LAYER_ON(layer) ((layer_state) & (1UL<<(layer))) | ||
| 214 | #define IS_LAYER_OFF(layer) ((!layer_state) & (1UL<<(layer))) | ||
| 211 | 215 | ||
| 212 | #endif | 216 | #endif |
