diff options
Diffstat (limited to 'tmk_core/common/action_layer.h')
| -rw-r--r-- | tmk_core/common/action_layer.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tmk_core/common/action_layer.h b/tmk_core/common/action_layer.h index b6da353cf..3a4b1e334 100644 --- a/tmk_core/common/action_layer.h +++ b/tmk_core/common/action_layer.h | |||
| @@ -70,6 +70,17 @@ void layer_xor(uint32_t state); | |||
| 70 | #define layer_debug() | 70 | #define layer_debug() |
| 71 | #endif | 71 | #endif |
| 72 | 72 | ||
| 73 | /* pressed actions cache */ | ||
| 74 | #if !defined(NO_ACTION_LAYER) && defined(PREVENT_STUCK_MODIFIERS) | ||
| 75 | /* The number of bits needed to represent the layer number: log2(32). */ | ||
| 76 | #define MAX_LAYER_BITS 5 | ||
| 77 | void update_source_layers_cache(keypos_t key, uint8_t layer); | ||
| 78 | uint8_t read_source_layers_cache(keypos_t key); | ||
| 79 | #endif | ||
| 80 | action_t store_or_get_action(bool pressed, keypos_t key); | ||
| 81 | |||
| 82 | /* return the topmost non-transparent layer currently associated with key */ | ||
| 83 | int8_t layer_switch_get_layer(keypos_t key); | ||
| 73 | 84 | ||
| 74 | /* return action depending on current layer status */ | 85 | /* return action depending on current layer status */ |
| 75 | action_t layer_switch_get_action(keypos_t key); | 86 | action_t layer_switch_get_action(keypos_t key); |
