summaryrefslogtreecommitdiff
path: root/common/layer_switch.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-03-20 00:56:54 +0900
committertmk <nobody@nowhere>2013-03-20 01:45:04 +0900
commitdbcac865b9faef2286ca2b0195ea08cf550d83ae (patch)
treeef97a69f18f1275966d318f69c70edf8dcb7ecaf /common/layer_switch.c
parentecb7550a91a7fb9a2e7e717f3c0d40d30fd92121 (diff)
Add NO_ACTION_KEYMAP 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 815d1e5f28..a5d426a899 100644
--- a/common/layer_switch.c
+++ b/common/layer_switch.c
@@ -24,6 +24,7 @@ void default_layer_set(uint8_t layer)
}
+#ifndef NO_ACTION_KEYMAP
/*
* Keymap Layer (0-15)
*/
@@ -95,6 +96,7 @@ void keymap_debug(void)
{
debug_hex16(keymap_stat); debug("("); debug_dec(keymap_get_layer()); debug(")");
}
+#endif
@@ -189,6 +191,7 @@ action_t layer_switch_get_action(key_t key)
}
#endif
+#ifndef NO_ACTION_KEYMAP
/* keymap: top layer first */
for (int8_t i = 15; i >= 0; i--) {
if (keymap_stat & (1<<i)) {
@@ -198,6 +201,7 @@ action_t layer_switch_get_action(key_t key)
}
}
}
+#endif
/* default layer */
action = action_for_key(default_layer, key);