summaryrefslogtreecommitdiffstats
path: root/tmk_core/common/action_layer.h
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2016-03-27 23:50:07 +0200
committerWojciech Siewierski <wojciech.siewierski@onet.pl>2016-03-27 23:51:46 +0200
commitb4f442dfeaf4d434ae0d8459dc5199cd8fefc1c7 (patch)
tree905233e4f29dddde1348b8d9a30ef46ee0b0e775 /tmk_core/common/action_layer.h
parenta5cdc3aab1c430916eae66d4d9d751808613e700 (diff)
downloadqmk_firmware-b4f442dfeaf4d434ae0d8459dc5199cd8fefc1c7.tar.gz
qmk_firmware-b4f442dfeaf4d434ae0d8459dc5199cd8fefc1c7.tar.xz
Cut the memory consumption of PREVENT_STUCK_MODIFIERS in half
Diffstat (limited to 'tmk_core/common/action_layer.h')
-rw-r--r--tmk_core/common/action_layer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tmk_core/common/action_layer.h b/tmk_core/common/action_layer.h
index b6da353cf..1a313a259 100644
--- a/tmk_core/common/action_layer.h
+++ b/tmk_core/common/action_layer.h
@@ -71,6 +71,9 @@ void layer_xor(uint32_t state);
#endif
+/* return the topmost non-transparent layer currently associated with key */
+int8_t layer_switch_get_layer(keypos_t key);
+
/* return action depending on current layer status */
action_t layer_switch_get_action(keypos_t key);