summaryrefslogtreecommitdiff
path: root/common/layer_switch.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-03-20 00:26:01 +0900
committertmk <nobody@nowhere>2013-03-20 00:26:01 +0900
commitb057511f45de020c43021f2991569a53c2b929c9 (patch)
treef68be1f393692a9235a76f6d98739d8a614ad13c /common/layer_switch.c
parent16870412679225d1a3b46c78928757deb713ae08 (diff)
Add NO_ACTION_OVERLAY config option
Diffstat (limited to 'common/layer_switch.c')
-rw-r--r--common/layer_switch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/layer_switch.c b/common/layer_switch.c
index 19e286f885..815d1e5f28 100644
--- a/common/layer_switch.c
+++ b/common/layer_switch.c
@@ -98,6 +98,7 @@ void keymap_debug(void)
+#ifndef NO_ACTION_OVERLAY
/*
* Overlay Layer (16-31 = 0-15|0x10)
*/
@@ -169,12 +170,14 @@ void overlay_debug(void)
{
debug_hex16(overlay_stat); debug("("); debug_dec(overlay_get_layer()); debug(")");
}
+#endif
action_t layer_switch_get_action(key_t key)
{
action_t action;
action.code = ACTION_TRANSPARENT;
+#ifndef NO_ACTION_OVERLAY
/* overlay: top layer first */
for (int8_t i = 15; i >= 0; i--) {
if (overlay_stat & (1<<i)) {
@@ -184,6 +187,7 @@ action_t layer_switch_get_action(key_t key)
}
}
}
+#endif
/* keymap: top layer first */
for (int8_t i = 15; i >= 0; i--) {