summaryrefslogtreecommitdiffstats
path: root/quantum/action_code.h
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-08-14 12:25:46 +0100
committerGitHub <noreply@github.com>2022-08-14 21:25:46 +1000
commitba04ecfabd4f254bb89ccd7d1de9ac7fb228ce5b (patch)
tree4198d6b70f683529a19d699a79dcd082e0b71cd2 /quantum/action_code.h
parentac31e429741a640b0d03d2ebd76554b7fe9247e0 (diff)
Align TO() max layers with other keycodes (#17989)
Diffstat (limited to 'quantum/action_code.h')
-rw-r--r--quantum/action_code.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/quantum/action_code.h b/quantum/action_code.h
index 20b3e459d2..e107f0a740 100644
--- a/quantum/action_code.h
+++ b/quantum/action_code.h
@@ -234,6 +234,7 @@ enum layer_param_tap_op {
#define ACTION_LAYER_INVERT(layer, on) ACTION_LAYER_BIT_XOR((layer) / 4, 1 << ((layer) % 4), (on))
#define ACTION_LAYER_ON(layer, on) ACTION_LAYER_BIT_OR((layer) / 4, 1 << ((layer) % 4), (on))
#define ACTION_LAYER_OFF(layer, on) ACTION_LAYER_BIT_AND((layer) / 4, ~(1 << ((layer) % 4)), (on))
+#define ACTION_LAYER_GOTO(layer) ACTION_LAYER_SET(layer, ON_PRESS)
#define ACTION_LAYER_SET(layer, on) ACTION_LAYER_BIT_SET((layer) / 4, 1 << ((layer) % 4), (on))
#define ACTION_LAYER_ON_OFF(layer) ACTION_LAYER_TAP((layer), OP_ON_OFF)
#define ACTION_LAYER_OFF_ON(layer) ACTION_LAYER_TAP((layer), OP_OFF_ON)